LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2010, 08:15 AM   #1
Linux.Girl
Member
 
Registered: Aug 2010
Posts: 42

Rep: Reputation: 2
Ubuntu 9.04 - Create Launcher Question


Hello everyone,

I tried to add a new launcher to a xfce panel on an Ubuntu 9.04. The problem is that I want to create a launcher for a .txt file - and the launcher does not give me the option of choosing "type". I read the following:

"Launcher Properties

When you create or edit a launcher, the following properties can be set:
Type Use the drop-down list to specify whether this launcher starts an application or opens a document:
Application The launcher starts an application.
Application in Terminal The launcher starts an application in a terminal.
File The launcher opens a file."


Problem is: I don't have this drop down menu from where I can choose the type. Is this because of the Ubuntu version/Panel version?

Any ideas how to solve this?

Thanks!

Linux.Girl
 
Old 09-07-2010, 11:12 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
I tried to add a new launcher to a xfce panel on an Ubuntu 9.04. The problem is that I want to create a launcher for a .txt file - and the launcher does not give me the option of choosing "type".
A launcher "for a text file"? Very easy, just right click the file and Send To Desktop, it will create a shortcut link you can double click at the Desktop; or you may use 'ln' command. Go the folder of that "text file" you said, open terminal here, ...

linuxGirl@host--$ ln -s ./name-of-your-textfile /home/yourhome/Desktop/name-of-link

Quote:

I read the following:
"Launcher Properties
When you create or edit a launcher, the following properties can be set:
Type Use the drop-down list to specify whether this launcher starts an application or opens a document:
Application The launcher starts an application.
Application in Terminal The launcher starts an application in a terminal.
File The launcher opens a file."
Problem is: I don't have this drop down menu from where I can choose the type. Is this because of the Ubuntu version/Panel version?
Ah... so you mean you wanted to create a launcher button on the panel for your text editor? Under Xfce that's very easy. Ubuntu has simple ways of doing that, I am using Slackware Xfce. Just try this if it will work under Ubuntu:

1) Right click the panel where you want to put the launcher button.
2) Click Add New Item, then click Launcher, then click Add, a configuration button should open before you. What is important is the Command entry, into the slot, enter the following: /usr/bin/mousepad. Having this in order you can proceed to choose an icon click the ^ button for choices. Write anything you wish under Name say "Text Editor" will do, then under Description you can write anything "Linux:GirlsEditor" or anything. Click close. Check and try your new launcher.
3) If by mistake you miss the configuration window you can find the newly created empty launcher button at the panel, right click it, choose Properties, then you will configure it the same way above.

Hope it helps. Good luck and enjoy.
 
1 members found this post helpful.
Old 09-13-2010, 04:53 AM   #3
Linux.Girl
Member
 
Registered: Aug 2010
Posts: 42

Original Poster
Rep: Reputation: 2
Hi my friend, thank you so much for your answer, but I guess I didn't explain myself as well as I should have:

I do NOT want to make a launcher in the Desktop and I do NOT want to make a launcher for a text editor. What I want is to make a launcher for a SPECIFIC text file and put this launcher in the panel. So when I click on that launcher, it will open that specific file (as opposed to just the text editor).

I read that: "To choose which TYPE of launcher you want, Use the drop-down list to specify whether this launcher starts an application or opens a document:
If on the drop-down list you choose "File", then the launcher opens a file."

Problem is I do not have that drop-down list, so I cannot choose the TYPE option FILE (which is the one I need) - so I was wondering:

a) Why dont I have the drop-down list with the TYPE options?
b) Is there a work around that?

Thanks!

Linux.Girl
 
Old 09-13-2010, 11:36 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
a) Why dont I have the drop-down list with the TYPE options?
Maybe ubuntu-xfce has a different implementation from that of gnome. But the nice thing with Xfce is that it is a hacking DE, it is easily hack-able by the user than either gnome or kde and that's why it leave the user to do it in many ways.

Quote:
b) Is there a work around that?


Yes. Just follow exactly the three steps I gave you above. I have tried it in my slackware and the launcher ran the text file in one click. This time, under second step <(b) above> you need to enter the file.txt as default target of the mousepad, this way:

Command: "/usr/bin/mousepad /home/girl/mytextfile"
<Note the space after mousepad.>

As I have said I tried it and it ran, there is greater possibility that it will under ubuntu.

Good luck.
 
1 members found this post helpful.
Old 09-13-2010, 12:06 PM   #5
Linux.Girl
Member
 
Registered: Aug 2010
Posts: 42

Original Poster
Rep: Reputation: 2
It worked, million thanks for the helpful post!!!!
 
Old 09-14-2010, 12:02 AM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Am happy to know that.

Enjoy Gnu/Linux.
 
Old 09-14-2010, 03:28 PM   #7
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,396

Rep: Reputation: 101Reputation: 101
Just another possible option - works on Ubuntu/Gnome - should (might?) work on XFCE. I have a text file which I use to keep notes of phone conversations. I created a launcher to it on the panel as follows:

Right click on panel - Add to panel; Custom application launcher
Select the Type as Location
Enter the path to the file in Location preceded by file:// (file:///data/phone.log in my case)

The launcher opens the file in my preferred editor, gedit. If I change my default editor for text files I would expect the launcher to respect the change without having to modify it. Guess I need to test my theory some day

Ken
 
1 members found this post helpful.
Old 09-15-2010, 07:12 AM   #8
Linux.Girl
Member
 
Registered: Aug 2010
Posts: 42

Original Poster
Rep: Reputation: 2
Thanks, unfortunately, I can't do "select type" as I don't have this option. But I already solved the problem following malekmustaq's advice.
 
Old 09-15-2010, 07:57 AM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
It's not possible to launch a text file, unless it's an executable script.

It's also possible to launch a text editor with the text file as an argument.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome panel "Create Launcher" question - bug or just poor design taylorkh Linux - Newbie 5 05-19-2010 08:52 AM
How do I create a script launcher Agent Orange Linux - Newbie 3 03-15-2007 03:38 PM
create Wine launcher bigalexe Linux - Newbie 2 04-29-2006 06:29 PM
create launcher in gnome innersmile Linux - General 3 06-09-2005 09:57 AM
create launcher in gnome innersmile Linux - Newbie 2 06-09-2005 08:32 AM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration