PDA

View Full Version : [ubuntu] How do I create a desktop shortcut?



ausairman
November 1st, 2011, 05:41 AM
Hi Everyone,
I want to create a shortcut/launcher to programs or directories on the desktop, but can't seem to work out how to do this. I'm using unity on ubuntu 11.10...
Arman

mcduck
November 1st, 2011, 09:47 AM
Use the "Main Menu"-tool to create the launcher. It will then appear in the Dash, and you can drag it from there to your desktop.

For directories you might want to just use a symbolic link instead, easily created by drag&dropping the directory to desktop using middle mouse button, and then selecting "Link Here" from the popup menu.

Mark Phelps
November 1st, 2011, 07:02 PM
Use the "Main Menu"-tool to create the launcher. It will then appear in the Dash, and you can drag it from there to your desktop.

OK ... so is this intended to serve as the replacement for the 11.04 option of right-clicking on the desktop and choosing Create Launcher?

mcduck
November 1st, 2011, 09:12 PM
OK ... so is this intended to serve as the replacement for the 11.04 option of right-clicking on the desktop and choosing Create Launcher?

No, it's the same tool that was used for creating launchers and managing the Applications menu in all previous Gnome versions.

For some reason or other Gnome developers removed the option to create launchers directly from the right-click menu in Nautilus, so the Main Menu tool is currently the best one available for the purpose.

If you want to have the option in your right-click menu, you could create empty .desktop file template into ~/Templates. That would allow you to create an empty launcher from the right-click menu, then right-click the new launcher, go to Properties and set the name, command, icon etc. for the launcher there.

Mark Phelps
November 1st, 2011, 10:24 PM
Thanks mcduck ... I'll have to give this a try.

randywilharm
November 1st, 2011, 11:03 PM
Use the "Main Menu"-tool to create the launcher. It will then appear in the Dash, and you can drag it from there to your desktop.

For directories you might want to just use a symbolic link instead, easily created by drag&dropping the directory to desktop using middle mouse button, and then selecting "Link Here" from the popup menu.



I Thank You for that...I just learned something...

ausairman
November 2nd, 2011, 01:04 AM
Use the "Main Menu"-tool to create the launcher. It will then appear in the Dash, and you can drag it from there to your desktop.

For directories you might want to just use a symbolic link instead, easily created by drag&dropping the directory to desktop using middle mouse button, and then selecting "Link Here" from the popup menu.

Thanks, this would be great, but I don't know how to access this tool. I'm using the standard ubuntu unity interface and I can't see the "Main Menu" tool anywhere. I've tried dragging objects from the dash (I'm assuming you mean the "Dash" feature at the top of the unity bar) onto the desktop but they just bounce right back into the unity bar...

Mark Phelps
November 2nd, 2011, 01:26 AM
Me to. ... I typed Main Menu in Dash ... and it finds NOTHING.

So, is this yet ANOTHER regression from 11.04 -- a feature in Natty that is no longer in 11.10?

UPDATE: I'm in Natty and, like with the desktop Create Launcher function, this is ANOTHER Feature that they took AWAY from us for 11.10! Entering Main Menu in Dash in 11.04 does indeed display a panel; in 11.10, it does NOTHING.

You know, it's taking things away from folks that drives them away!

ausairman
November 2nd, 2011, 06:11 AM
Ok so I found the "Main Menu" tool by clicking on the dash button, then on the little applications button at the bottom, then searching for it. Then I added a launcher, which I added to the "Science" submenu, in my case called "Pointwise". 2 questions:

1) Why can I still not search for it from my dashboard and thus add it to the unity bar or my desktop?

2) What is the purpose of the main menu and all that whole menu tree when everything is amalgamated into unity?

Mark Phelps
November 3rd, 2011, 01:33 AM
IN my case, that found a package that COULD be installed. It wasn't already installed on my system.

But ... I took the larger route and installed alacarte instead. That got me Main Menu and Gnome Panel and other stuff I missed.

That's one of the great things that keeps me coming back to Linux -- if it's not readily visible, there's always a way to add it from behind the scenes!

ausairman
November 3rd, 2011, 03:59 AM
Would really appreciate if someone could give me a way to create a launcher on my desktop, that works with unity in 11.10... I realise there are round-about hacks that may or may not work, but there must be a way to launch a command from an icon on the desktop, surely...

ausairman
November 3rd, 2011, 04:02 AM
I found a link here that seems to illustrate a painful way of doing it: http://shuffleos.com/3274/how-to-create-desktop-launchers-in-ubuntu-11-10-oneiric-ocelot/

If this is the only way to create a desktop icon in ubuntu then I'm extremely disappointed in the makers of the new unity setup...

stinkeye
November 3rd, 2011, 06:28 AM
I found a link here that seems to illustrate a painful way of doing it: http://shuffleos.com/3274/how-to-create-desktop-launchers-in-ubuntu-11-10-oneiric-ocelot/

If this is the only way to create a desktop icon in ubuntu then I'm extremely disappointed in the makers of the new unity setup...

In addition to that link you can
save this script as Create_Desktop_launcher for a right click nautilus script item.

#!/bin/bash

gnome-desktop-item-edit ~/Desktop/ --create-new
Place in ~/.gnome2/nautilus-scripts/ and make executable.

PS: It's more to do with the transition from gnome2 to gnome3 than Unity.

ausairman
November 7th, 2011, 02:08 AM
Thanks, I'll give that a try!

So is this a feature that will be reimplemented soon or has it been deliberately removed?

mcduck
November 7th, 2011, 07:57 AM
Thanks, I'll give that a try!

So is this a feature that will be reimplemented soon or has it been deliberately removed?

More likely it's been deliberately removed, as Gnome 3 doesn't even use desktop icons, let alone desktop launchers, by default. Without desktop launchers there's not much reason for Gnome to add a tool for creating desktop launchers.

Perhaps Ubuntu developers, or somebody else, creates a new tool for the purpose. But currently you already get pretty close using any of the workarounds mentioned in this thread.

ausairman
November 10th, 2011, 01:43 AM
In addition to that link you can
save this script as Create_Desktop_launcher for a right click nautilus script item.

When I did that, it appeared in the scripts dialog but when I clicked on it nothing happened... Does this mean that it's impossible to create shortcuts to things in 11.10? I'm finding my 11.10 experience so far to be very frustrating...

stinkeye
November 10th, 2011, 06:15 AM
When I did that, it appeared in the scripts dialog but when I clicked on it nothing happened... Does this mean that it's impossible to create shortcuts to things in 11.10? I'm finding my 11.10 experience so far to be very frustrating...
Did you give the script executable permissions?
Right click properties > permissions
Did you install gnome-panel?

Mark Phelps
November 10th, 2011, 06:52 PM
The link below is to a tutorial on how to create launchers -- but it covers much the same things you've already done:

http://www.ubuntugeek.com/how-to-create-desktop-launchers-in-ubuntu-11-10oneiric.html