LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to add a gnome menu entry (https://www.linuxquestions.org/questions/linux-software-2/unable-to-add-a-gnome-menu-entry-854166/)

jf.argentino 01-04-2011 11:08 AM

Unable to add a gnome menu entry
 
Hello everybody and happy new year

I'm trying to add an entry to the gnome menu for every users of a FEDORA 14 system, both
Code:

xdg-desktop-menu install --novendor --mode system osean-programmer.desktop
and
Code:

desktop-file-install osean-programmer.desktop
do not work: I've got no new entry in the menu nor in the "alacarte" application, even if I "killall gnome-panel", logout or reboot the system.
Here's my .desktop file content:
Code:


#!/usr/bin/env xdg-open

[Desktop Entry]
Name=Programmateur boîtiers de communication
Name[fr]=Programmateur boîtiers de communication
Comment=Logiciel de programmation pour les boîtiers de communication pour plongeurs
Comment[fr]=Logiciel de programmation pour les boîtiers de communication pour plongeurs
TryExec=Programmateur-OSEAN
Exec=Programmateur-OSEAN
Icon=/usr/share/icons/osean-64x64.png
Type=Application
Categories=Utility;
StartupNotify=true
Terminal=0
X-Desktop-File-Install-Version=0.16

My real purpose it to make a RPM for an application, then adding the proper line to the "%post" script. Since it doesn't work by installing the RPM, I've test by hand without any success.

Subsidiary question:
How to add the application launcher to every user's Desktop during the RPM installation?

Any clue greatly appreciated

arizonagroovejet 01-05-2011 02:19 PM

Quote:

Originally Posted by jf.argentino (Post 4212849)
Subsidiary question:
How to add the application launcher to every user's Desktop during the RPM installation?

I don't have access to a Fedora machine, but when I make rpms for SuSE I put a .desktop file in /usr/share/applications/
If I want to test the menu entry prior to building the rpm I just manually create the .desktop file in /usr/share/applications/ and then remove it again when I'm done.

If you put a .desktop file in /usr/share/applications and it doesn't show up in the GNOME menu you might need to specify additional Categories. Find the .desktop file for a menu entry that's in the part of the menu you want your icon to appear in and see what that says in the Categories line.


All times are GMT -5. The time now is 06:52 AM.