[ubuntu-za] .desktop file

Quintin van Rooyen quintin.vanrooyen at gmail.com
Mon Jan 9 17:35:50 UTC 2012


Hey Charl.

On 9 January 2012 17:56, Charl Wentzel <charl.wentzel at vodamail.co.za> wrote:

> Hi Guys
>
> I'm trying to create a "nice" shortcut for Eclipse in my Unity Launcher.
> So I did the following:
>
> 1. I created a file eclipse.desktop in /usr/share/applications.  The
> content is as follows:
>
> [Desktop Entry]
> Encoding=UTF-8
> Name=Eclipse 3.7 Indigo
> Comment=Eclipse IDE
> Exec=eclipse
> Icon=/opt/eclipse/icon.xpm
> Terminal=false
> Type=Application
> Categories=GNOME;Application;Development;
> StartupNotify=true
>
> Right here you are missing a line. Insert the below in here and try again:
(Everything BETWEEN the dotted lines.)
--------
X-Ayatana-Desktop-Shortcuts=C++;PHP;
--------

Note that I am not sure if the +es in that line will be parsed, so play
around.

Below I also pasted my custom 'nautilus-home.desktop' launcher that I have
in /usr/share/applications that have custom launcher items for Music,
Documents et al. It works, so if your file still has issues you can use
mine as a kind of template:

----------------------------------------
[Desktop Entry]
Name=Home Folder
Comment=Open your personal folder
Exec=nautilus %U
Icon=user-home
Terminal=false
StartupNotify=true
Type=Application
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Core;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.0.0
X-Ubuntu-Gettext-Domain=nautilus
X-Ayatana-Desktop-Shortcuts=Videos;Documents;Music;Pictures;Downloads
[Videos Shortcut Group]
Name=Videos
Exec=nautilus Videos
TargetEnvironment=Unity

[Documents Shortcut Group]
Name=Documents
Exec=nautilus Documents
TargetEnvironment=Unity

[Music Shortcut Group]
Name=Music
Exec=nautilus Music
TargetEnvironment=Unity

[Pictures Shortcut Group]
Name=Pictures
Exec=nautilus Pictures
TargetEnvironment=Unity

[Downloads Shortcut Group]
Name=Downloads
Exec=nautilus Downloads
TargetEnvironment=Unity
-------------------------------------------------------

8< ---- shortened mail :)

> Regards
> Charl
>
> HTH.

Quintin


>
> --
> ubuntu-za mailing list
> ubuntu-za at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-za
>



-- 
Quintin van Rooyen
quintin.vanrooyen at gmail.com
The New SA Geek!
http://g33q.co.za
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-za/attachments/20120109/cb68e36c/attachment.html>


More information about the ubuntu-za mailing list