LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-13-2012, 08:16 PM   #1
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
How to create custom app launcher with Fedora 16 gnome3?


Hi. I have tried many times but I can't for the life of me figure out how to create a custom launcher for the shortcuts menu. It's easy to do that with stuff already in the regular menu but is apparently (to me) impossible with something that's not. Thanks ahead of time.
 
Old 02-14-2012, 04:39 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 116Reputation: 116
Do you want your app launcher to just be a button on the panel bar that launches one app when you click on it? If so, then you should be able to:
1. Right click on the panel bar and select "Add to Panel"
2. Select "Custom Application Launcher" then click "Add".
3. Fill in "Name:" and "Comment:" with some reminder text or a name.
4. Fill in "Command:" with the name or path to the application, plus any customizing options.
5. Clock on the springboard icon and browse for a different icon to be displayed.

If, instead, you want a custom menu to come up, with your applications listed in this menu, then I suggest getting the source code to the "myGtkMenu" program at ...

http://sites.google.com/site/jvinla/...enu-1.3.tar.gz

... unless you can find it in your package repository. This package is technically an app, but uses the Gtk+ API calls for menus to implement a menu (is styled just like a menu, goes away when an app is launched, etc). It then uses a menu configuration file in its own format. You would still use the steps I gave above to get it onto your panel bar, but you would specify the myGtkMenu program and menu config file name as the launched command. For example, I created such a menu for websites I visit often. In the app launcher I set up:

Name: Websites
Command: /usr/local/bin/myGtkMenu /home/phil/.myGtkMenu/Websites
Comment: Websites

and gave it the "fox globe" icon. Then I have a big file as named on the command line with a configuration similar to the example file included in the source.
 
Old 02-14-2012, 06:47 PM   #3
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora FC19, Raspbian
Posts: 295

Rep: Reputation: 38
Quote:
Originally Posted by Skaperen View Post
Do you want your app launcher to just be a button on the panel bar that launches one app when you click on it? If so, then you should be able to:
1. Right click on the panel bar and select "Add to Panel"
2. Select "Custom Application Launcher" then click "Add".
3. Fill in "Name:" and "Comment:" with some reminder text or a name.
4. Fill in "Command:" with the name or path to the application, plus any customizing options.
5. Clock on the springboard icon and browse for a different icon to be displayed.
If SharpyWarpy is using Fedora 16 with the Gnome [3] shell, then there is no gnome panel to add the custom application launcher to. If SharpyWarpy is using Gnome 3 fallback mode, then your reply above would work.

In the case SharpyWarpy is stuck with the gnome shell, then normally alacarte would allow one to add a custom launcher, but unfornately alacarte is broken in F16.

You can manually add a custom launcher. Here is a template from my set up. In the directory ${HOME}/.local/share/applications create the following file with name mylauncher.desktop:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec='<path to program to be launched' %f
Name=<name of launcher>
Comment=custom launcher for <myprogram>
NoDisplay=false
Edit this file to contain the Name, and Exec of the program you want to launch. The launcher icon will now appear in the Activities/Applications list. Drag the icon over to the shortcut or I think you can just right click on the icon and select add to shortcuts.

You can also have the custom launcher located in a specific Application menu by adding a Categories keyword record with the keyword for the menu as the value. The definition of desktop files is explained here.
 
1 members found this post helpful.
Old 02-15-2012, 05:53 AM   #4
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 90
@ pwalden -- Thank you. That looks promising, but I did get Alacarte working thanks to the information in this link:
http://blog.mclaughlinsoftware.com/2...u-editing-fix/
and from Alacarte I can create a launcher and as you said, right click on it and have it in the favourites bar. Thanks again. I'm going to mark this thread as solved.
 
1 members found this post helpful.
Old 02-15-2012, 10:53 AM   #5
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora FC19, Raspbian
Posts: 295

Rep: Reputation: 38
Thank you for the pointer to the alacarte work-around fix.

I still manually edit the desktop files as I have made some fancier launchers than is usual. The alacarte is great for making the initial desktop entry.

Last edited by pwalden; 02-15-2012 at 10:54 AM.
 
Old 06-04-2012, 12:51 AM   #6
ad66
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
no .local/share/applications dir

Hi!

On my fc16 there is no .local/share/applications directory. I created one by hand and placed there a .desktop file as described above, but it didn't work.

Can anyone tell me, why there's no applications folder on my installation? Where does fc16 keep info on what is shown in the favorites toolbar?

Regards,
Andrzej.
 
Old 06-04-2012, 10:10 AM   #7
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora FC19, Raspbian
Posts: 295

Rep: Reputation: 38
It should work. Gnome is not very forgiving if there is an error in the file. It will just not show up. That is why alacarte was useful in creating these files correctly. Some things to check: is the exec line correct, does the Categories line contain real keywords.

Can you post your desktop file to see if you made an error in it.?
 
Old 06-04-2012, 11:11 AM   #8
ad66
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
Thank you for your reply. Here it goes:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec='/usr/bin/firefox'
Name=test
Comment=custom launcher for test
NoDisplay=false
I also tried "Exec = /usr/bin/firefox" (without quotes), and also with "%f" argument, as suggested above in the thread.
I named the file "test.desktop" and put it in ~/.local/share/applications. Note that there was no ~/.local/share/applications directory before. I created it with mkdir.
And I hoped an entry named "test" would show up in the Applications list, but to no avail.
Andrzej.
 
Old 06-04-2012, 02:07 PM   #9
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Fedora FC19, Raspbian
Posts: 295

Rep: Reputation: 38
It won't show up in the Applications menu unless you assign a Category to it. Each set up is somewhat different. In Fedora there is a Network category which posts the launcher to the "Internet" menu.

Try adding the line below to the desktop file and see if it appears in the Applications > Internet menu:

Categories=Application;Network;

Note: if it works, it may take a few seconds for the session manager to notice the change and pick it up. If you don't see anything after 30 seconds, then there is something else wrong or you may have a different set of Categories on your system.
 
1 members found this post helpful.
Old 06-05-2012, 11:37 AM   #10
ad66
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
Thank you!
This was it. Now it works.
 
  


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
Gnome3 - gnome-contacts app - where do I find the database Jean-Luc Besson Linux - Desktop 5 12-02-2011 10:18 PM
create app launcher and change icon on xfce desktop cccc Debian 3 02-03-2011 04:40 PM
How to create fedora 10 custom installer ravis.1808@gmail.com Red Hat 2 07-20-2009 04:23 AM
Create custom single fedora CD baloon Fedora 0 01-31-2007 07:51 AM
a good app launcher? daedalusonlinux Linux - Software 4 12-04-2005 11:31 AM


All times are GMT -5. The time now is 03:38 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration