Results 1 to 3 of 3

Thread: Linux Desktop Shortcut

  1. #1
    Join Date
    Apr 2008
    Posts
    395

    Linux Desktop Shortcut

    Hi
    Many people many wonder how to add an application in the desktop menu, or create a desktop shortcut from the menu. The following will explain how to add application to the desktop menu and from there to your desktop. Linux uses a .desktop file for icons. The locations of the icons depends on the distribution and the desktop environment you are using. I am using Fedor 9 and Gnome as a desktop environment so I will explain you with respect to these.
    The content of the .desktop file are somewhat like this
    [Desktop Entry]
    Code:
    Encoding=UTF-8
    GenericName=Generic Piece Of Software
    Name=FooBar
    Exec=/usr/bin/foo.sh
    Icon=foo.png
    Terminal=false
    Type=Application
    Categories=Qt;Gnome;Applications;
    The name of the file is foo.desktop. Mostly the .desktop files are located in /usr/share/applications.
    Explanation of the contents of the file
    Generic name == Brief Description of application.
    Icon == The image to display for the icon
    Terminal == Is this a terminal application, should I start it as one?
    Type == Type of program this is, can be used in placing the icon in a menu.
    Categories == This information is what is mainly used to place the icon in a given menu if an XML file to specify such is not present. The setup for menus is handled a little differently by everyone.
    Encoding, Name and Exec should speak for themselves.
    mostly the image files are located in /usr/share/icons directory. Under Gnome mostly all the images are in png format.

  2. #2
    Join Date
    Nov 2009
    Posts
    359

    Re: Linux Desktop Shortcut

    Hi
    Thank you very much for your post.
    Actually even I was looking for something like that because I want to add a specific file to the menu and then create a desktop shortcut. I have done it successfully now and even I have added a icon to it. I am happy now. Thanks for your post.

  3. #3
    Join Date
    Apr 2008
    Posts
    264

    Re: Linux Desktop Shortcut

    Hi
    The above mentioned post is good, but I think many of the desktop environments including Gnome , Kde and DFCE implement the specifications lead by freedesktop organization. One of these specifications of the Desktop Entry Specification which explains the format of the file that defines desktop icons. The Desktop Base Directory Specification explains the locations that desktop environments should look to find these files. if you are installing an rpm package then your rpm needs to include a .desktop file as it is specified by the Desktop Entry Specification and it should install it to the correct location as specified by
    Desktop Base Directory Specification.

Similar Threads

  1. creating shortcut keys for a desktop shortcut
    By annroberti in forum Windows XP Support
    Replies: 6
    Last Post: 15-03-2012, 12:34 PM
  2. Linux Mint: Shortcut for a folder on the desktop
    By Calandar in forum Operating Systems
    Replies: 5
    Last Post: 16-01-2011, 10:26 PM
  3. Don't need MS Office Shortcut bar on desktop
    By Harmony60 in forum Windows Software
    Replies: 4
    Last Post: 06-02-2010, 12:39 PM
  4. Can't create desktop shortcut....help
    By Ebenezer in forum Operating Systems
    Replies: 2
    Last Post: 20-04-2009, 03:46 PM
  5. Weird shortcut on desktop
    By gruchi1 in forum Customize Desktop
    Replies: 4
    Last Post: 14-02-2009, 02:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,066,567.24801 seconds with 17 queries