Suppose you want to run an third party application from the Gnome Application panel which was compiled from a tarball for instance and does not appear in the menu.
Create a text file /usr/share/applications/<APP_NAME>.desktop with your favoured editor (e.g. vi) with the following content:
[Desktop Entry]
Name=Shortcut's name
Comment=Shortcut's tool tip text
Exec=Absolute path to the executable
Icon=Absolute path to the application icon file (e.g. PNG)
Terminal=false (or true if you want to run it in a terminal)
Type=Application
Categories=Application;Network;
Categories can be AudioVideo, FileTransfer, etc. To get an idea of avaliable categories, just grep in the existing shortcuts for categories:
# grep Categories /usr/share/applications/*.desktop
That's it!
Create a text file /usr/share/applications/<APP_NAME
[Desktop Entry]
Name=Shortcut's name
Comment=Shortcut's tool tip text
Exec=Absolute path to the executable
Icon=Absolute path to the application icon file (e.g. PNG)
Terminal=false (or true if you want to run it in a terminal)
Type=Application
Categories=Application;Network;
Categories can be AudioVideo, FileTransfer, etc. To get an idea of avaliable categories, just grep in the existing shortcuts for categories:
# grep Categories /usr/share/applications/*.desktop
That's it!
No comments:
Post a Comment