creating my own desktop shortcut?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

creating my own desktop shortcut?

Postby jms on Wed Jan 16, 2013 5:59 pm

Hi, I installed a program I needed by just untaring it to a directory in my home folder. It wasn't available through the apt-get installer and I doubt it's available from any PPAs, as it's a fairly obscure program.

Now I'd like to add it to my desktop so I don't have to manually navigate to the directory and type ./PROGRAMNAME to launch it. How can I add it to my deskop, and preferably to the application menu also?

Thanks.
jms
Level 1
Level 1
 
Posts: 23
Joined: Wed Jan 02, 2013 1:36 pm

Linux Mint is funded by ads and donations.
 

Re: creating my own desktop shortcut?

Postby passerby on Wed Jan 16, 2013 7:25 pm

Adding it to the menu will vary slightly depending on what desktop environment you're using, but creating a shortcut on the desktop should be pretty much the same anywhere.
Right click on the desktop and choose "Create Launcher" or "Create Shortcut", whatever your particular file manager says.
You should be presented with a "Create Launcher" popup window. Leave the Type as Application, enter whatever name you see fit, then use "browse" to select the program you've been launching. Optionally you can add a comment, but it isn't mandatory. Also, if an icon isn't selected automatically, you can click on the image towards the left to choose a different icon.

eg.
Type: Application
Name: Armitage
Command: "/home/user/.armitage/armitage.sh"

You should also be able to right click on the file you're executing and select "Create link", then cut and paste that link to the desktop. In my experience this doesn't work for all applications/paths, but it works for the most part.
Home PC: Xubuntu 14.04 x64, Nvidia GTX650, i7 3770K, 16GB RAM, Asus Xonar DX
Work PC: Mint 13 x64 XFCE, Nvidia GT620, i5 3470, 8GB RAM
Laptop: System76 Kudu Pro, Xubuntu 14.04 x64

My HTML5 login themes + screenshots
User avatar
passerby
Level 6
Level 6
 
Posts: 1374
Joined: Sun Dec 16, 2012 7:29 pm

Re: creating my own desktop shortcut?

Postby kc1di on Wed Jan 16, 2013 7:28 pm

hello jms,
in order to get it exicute correctly you need to create a .desktop file and place it in /usr/share/applications.
here a page telling you how to do that.
Then just copy the created file to your Desktop folder if you want it on your desktop.

http://developer.gnome.org/integration- ... es.html.en

hope that helps.
John 3:16
Morse code an Early
Digital Mode
Registered Linux User #462608
Image
User avatar
kc1di
Level 6
Level 6
 
Posts: 1443
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: creating my own desktop shortcut?

Postby jms on Thu Jan 17, 2013 12:21 am

Thanks to both of you, worked great!
jms
Level 1
Level 1
 
Posts: 23
Joined: Wed Jan 02, 2013 1:36 pm


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], capivara and 31 guests