LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you create desktop shortcuts? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-create-desktop-shortcuts-594274/)

fexter 10-24-2007 01:22 PM

How do you create desktop shortcuts?
 
How do you create desktop shortcuts?

rickh 10-24-2007 01:28 PM

I guess, to begin with, that would require us to know which desktop environment you are using. Doncha think?

b0uncer 10-24-2007 01:36 PM

Desktop shortcuts are actually files that tell what to execute/show/do where, among other things. There can be different "standards" (for example different desktop environments could use their own kinds of 'desktop shortcuts' that didn't work elsewhere), but nowadays there are some agreed standards that at least the biggest desktop environments try to obey. Therefore KDE-made shortcuts should work in Gnome and vice versa.

The content of a desktop shortcut, which is a plain-text file, could be something like this (the file is called something.desktop, of which your desktop environment kindly hides the .desktop part, so the icon shows up just as something for you.):
Code:

[Desktop Entry]
Comment=
Encoding=UTF-8
Exec='/path/to/some/nice/executable'
GenericName=Some nice executable
Icon=/usr/share/pixmaps/someniceicon.png
MimeType=
Name=A Nice Thing
Path=/path/to/some/nice/
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=

It's just made so that when your desktop environment finds a .desktop file, it reads it trough and handles it as a "desktop shortcut", reading the information from the file and working with it as configured.

The_JinJ 10-24-2007 01:37 PM

In Gnome, right click on the desktop and choose create launcher

fexter 10-24-2007 01:42 PM

Wow thanks guys!!! This is great stuff! Sorry I am a hardcore windows person trying to switch over to Ubuntu 7.10. I am actually testing it out with VMware so thats why I have all sorts of dumb/simple questions.

Thanks for the replies!

Daws 10-24-2007 04:38 PM

See also:
http://standards.freedesktop.org/des...y-spec/latest/


All times are GMT -5. The time now is 01:29 PM.