Thread: LimeWire 3.9.10
View Single Post
  #12 (permalink)  
Old May 13th, 2004
limenut limenut is offline
Enthusiast
 
Join Date: July 11th, 2003
Posts: 46
limenut is flying high
Default KDE/Gnome Menu Entries

Could future versions of LimeWire's installer in Linux drop in KDE/Gnome menu entries?

The guide at:
http://freedesktop.org/Standards/des...ry-spec/0.9.4/
explains how to format a ".desktop" file.

http://www.freedesktop.org/standards...8/ar01s02.html
and http://freedesktop.org/Standards/bas...6/ar01s03.html explain where to place the ".desktop" files.

On SuSE 9.0, none of that XDG environment variable stuff seems to be defined so, $HOME/.local/share/applications/ works as a decent place to drop in a ".desktop file when the installer is being run as a normal user. When it is being run as root, it should drop a ".desktop" file in /usr/share/applications/ and it would appear on all user's menus.

Following their specification, a working ".desktop" file I created looks like this:
Code:
[Desktop Entry]
Type=Application
Version=0.9.4
Encoding=UTF-8
Name=LimeWire
GenericName=File Sharing Client
Comment=Gnutella-based File Sharing Client
Icon=/home/user/LimeWire/limewire.ico
Exec=/home/user/LimeWire/LimeWire
Path=/home/user/LimeWire
Categories=Network;FileTransfer
If LimeWire is ever uninstalled, removing its entry is as easy as removing the LimeWire.desktop file it dropped in $HOME/.local/share/applications/ or /usr/share/applications/ (and possibly also rebuilding the menu cache if the uninstaller is run within kde using "kbuildsycoca" but I don't think that is required).

The specs at www.freedesktop.org regarding .desktop entries seems to work ok in KDE 3.1.4, I haven't tested any other environment though.