How can I create launchers on my desktop?
up vote
227
down vote
favorite
In older versions it was easy to create a launcher on my desktop. All I had to do is right click on my desktop and select the "create launcher" option.
How can I create such launchers now?
launcher .desktop
add a comment |
up vote
227
down vote
favorite
In older versions it was easy to create a launcher on my desktop. All I had to do is right click on my desktop and select the "create launcher" option.
How can I create such launchers now?
launcher .desktop
Have a look at Xubuntu: Xfce has very elegant support for this through the menu editor.
– 魔大农
Nov 13 '15 at 20:01
I had to start Tweak tool, enable Desktop Icons, then doubleclick the Home icon on desktop, then drag the folder to desktop, holding ALT key while dropping (not before). Other methods would not work until Ienabled icons on desktop :)
– Spikolynn
Feb 6 '17 at 22:09
I know there's already lots of pretty good answers, but here's my preferred method, with a detailed example using the Arduino IDE v1.8.5: askubuntu.com/a/1014261/327339
– Gabriel Staples
Mar 12 at 18:54
add a comment |
up vote
227
down vote
favorite
up vote
227
down vote
favorite
In older versions it was easy to create a launcher on my desktop. All I had to do is right click on my desktop and select the "create launcher" option.
How can I create such launchers now?
launcher .desktop
In older versions it was easy to create a launcher on my desktop. All I had to do is right click on my desktop and select the "create launcher" option.
How can I create such launchers now?
launcher .desktop
launcher .desktop
edited Feb 3 '17 at 16:08
muru
135k20289492
135k20289492
asked Oct 4 '11 at 13:43
tinuz
1,69251521
1,69251521
Have a look at Xubuntu: Xfce has very elegant support for this through the menu editor.
– 魔大农
Nov 13 '15 at 20:01
I had to start Tweak tool, enable Desktop Icons, then doubleclick the Home icon on desktop, then drag the folder to desktop, holding ALT key while dropping (not before). Other methods would not work until Ienabled icons on desktop :)
– Spikolynn
Feb 6 '17 at 22:09
I know there's already lots of pretty good answers, but here's my preferred method, with a detailed example using the Arduino IDE v1.8.5: askubuntu.com/a/1014261/327339
– Gabriel Staples
Mar 12 at 18:54
add a comment |
Have a look at Xubuntu: Xfce has very elegant support for this through the menu editor.
– 魔大农
Nov 13 '15 at 20:01
I had to start Tweak tool, enable Desktop Icons, then doubleclick the Home icon on desktop, then drag the folder to desktop, holding ALT key while dropping (not before). Other methods would not work until Ienabled icons on desktop :)
– Spikolynn
Feb 6 '17 at 22:09
I know there's already lots of pretty good answers, but here's my preferred method, with a detailed example using the Arduino IDE v1.8.5: askubuntu.com/a/1014261/327339
– Gabriel Staples
Mar 12 at 18:54
Have a look at Xubuntu: Xfce has very elegant support for this through the menu editor.
– 魔大农
Nov 13 '15 at 20:01
Have a look at Xubuntu: Xfce has very elegant support for this through the menu editor.
– 魔大农
Nov 13 '15 at 20:01
I had to start Tweak tool, enable Desktop Icons, then doubleclick the Home icon on desktop, then drag the folder to desktop, holding ALT key while dropping (not before). Other methods would not work until Ienabled icons on desktop :)
– Spikolynn
Feb 6 '17 at 22:09
I had to start Tweak tool, enable Desktop Icons, then doubleclick the Home icon on desktop, then drag the folder to desktop, holding ALT key while dropping (not before). Other methods would not work until Ienabled icons on desktop :)
– Spikolynn
Feb 6 '17 at 22:09
I know there's already lots of pretty good answers, but here's my preferred method, with a detailed example using the Arduino IDE v1.8.5: askubuntu.com/a/1014261/327339
– Gabriel Staples
Mar 12 at 18:54
I know there's already lots of pretty good answers, but here's my preferred method, with a detailed example using the Arduino IDE v1.8.5: askubuntu.com/a/1014261/327339
– Gabriel Staples
Mar 12 at 18:54
add a comment |
18 Answers
18
active
oldest
votes
up vote
190
down vote
accepted
The old GUI dialog is still available if you still want to use this:
Using ALT+F2 type
gnome-desktop-item-edit --create-new ~/Desktop
This will launch the old GUI Dialog and create a launcher on your Desktop:
Prerequisites
gnome-desktop-item-edit
is installed automatically if you have installed gnome-shell/gnome-fallback. It is also installed automatically if you have previously installed gnome-tweak-tool
.
Alternatively, you can install the old gnome-panel without much of the bulk:
sudo apt-get install --no-install-recommends gnome-panel
You can later move the MyLauncher.Desktop
file from ~/Desktop
to ~/.local/share/applications/
to it them appear on all applications dashboards.
57
While this is a fantastic answer, it is really sad that Ubuntu has made it this difficult.
– djangofan
Jan 30 '12 at 17:36
15
What if you created a launcher, that launched "create launcher" would puttinggnome-desktop-item-edit --create-new ~/Desktop
into the command section work to do this, then you would have a desktop icon to create launchers.
– Mateo
Apr 28 '12 at 4:08
1
Oh, by typing it in a terminal I can see why it doesn't work: $ gnome-desktop-item-edit --create-new ~/Desktop The program 'gnome-desktop-item-edit' is currently not installed. You can install it by typing: sudo apt-get install gnome-panel
– matteo
Oct 25 '13 at 16:23
14
Worth adding that a good place for these is in~/.local/share/applications/
- then they turn up in the dash.
– artfulrobot
Sep 19 '14 at 10:25
6
I don't understand why it should be that hard ?
– Adelin
May 28 '16 at 12:08
|
show 10 more comments
up vote
101
down vote
You can do it manually. Make a new text-file named something.desktop and write this in there:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=command to run here
Name=visible name here
Comment=comment here
Icon=icon path here
Dont forget to make the file executable (chmod +x something.desktop
).
5
Thanks for your answer. Where do i need to place the file, i can place it in the .local/share/applications folder and drag and drop it into the launcher panel but that's not what i want. I want to have them on my desktop instead of the launcher panel.
– tinuz
Oct 4 '11 at 14:33
Than put it onto your Desktop! You can place it everywhere you want.
– fnkr
Oct 4 '11 at 18:02
2
Thanks for the answer it now works .. i had to make the file executable :)
– tinuz
Oct 4 '11 at 19:15
This works except you need to mention that the file needs to have executable permissions.
– DJTripleThreat
Nov 5 '11 at 22:24
5
This is a major pain. You need to edit a text file to create a shortcut? Why do we make it way more difficult than on Windows? And how do you come up with an "Icon path here" when you have an executable? Good luck extracting icons from that - a whole 'nother quest. It's amazing how difficult this simplest of tasks is on Ubuntu!
– Dan Dascalescu
Jan 24 at 8:25
|
show 3 more comments
up vote
39
down vote
There is cooler way:
Arronax
Original picture taken from iloveubuntu.net which currently inaccessible
To install, type open a terminal with Ctrl+Alt+T and write:
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install arronax
nautilus -q
This is cooler because it has drag&drop and more functions with a GUI.
More about Arronax on ubuntugeek.com.
That is a nice tool, Loved it. Thanks!
– Anwar
Mar 3 '14 at 12:37
This a a very neat tool. See the authors site florian-diesch.de/software/arronax
– Rudiger Wolf
Sep 23 '14 at 9:04
Now alacarte is broken, this is the way. It doesn't show you all your launchers like alacarte did, but it lets you set more settings on them...
– user77164
Feb 9 '15 at 6:35
This is really nice, and it's not just for Unity. Works well on MATE too !
– JonasCz
Jun 16 '16 at 17:40
THANK YOU! reported a few errors on install (Ubuntu 16), but it worked perfectly! Shows the correct icon in the launcher, too!
– dwn
Sep 18 '16 at 15:41
|
show 1 more comment
up vote
32
down vote
No longer works in latest version, desktop icons were completely removed.
This Is a solution to get it back on the right click menu In Gnome and Unity,
1- Install gnome-tweak-tool , if you don't already have it,
In terminal paste-
sudo apt-get install gnome-tweak-tool
2- Then type the following to launch it
gnome-tweak-tool
Or use the key shortcut Alt+F2 type gnome-tweak-tool
then click "Run"
3- Navigate to the "Desktop" tab on the left pictured - And turn ON
"Have file manager handle the desktop"
4-Source for this part: 1 Now we are going to create a Script to put on the right click menu -
Open gedit
either by terminal or Alt+F2, Paste the code
gnome-desktop-item-edit ~/Desktop/ --create-new
put only this into the new text document and then save it as "Create New Launcher" no extension needed (you may need to use .sh as extension ex "Create New Launcher.sh", if you can't make it executable in the next step).
5- Now we need to make the file executable, Right click on the file go to > Properties > click Permissions tab > look for "Execute" and check "Allow executing file as program" then close out.
6- Open the file browser, go to > View > Show Hidden Files, now navigate to you home folder, and Place the file in ~/.gnome2/nautilus-scripts
. Shown below -
7- Now we have Create new launcher on the right click menu! Right click on your desktop and go to > Scripts > Create New Launcher
Then fill in the comand information for the application you want,
Shown below-
If you forget what the app's launch command is click "Browse" then navigate to File System > usr > bin which is /usr/bin , these are the applications on your system, most should automatacally find the icon after you click "Open" , although they won't show up before.
If It dosn't show the icon when you get back to the "Create Launcher" box you can drag a icon in by finding the icon in /usr/share/icons .
There are default icons in the various theme folders or specific icons in the /usr/share/icons/hicolor/scalable/apps
or /usr/share/icons/hicolor/48x48/apps
, or if later you want to put an icon in you can right click > properties to drag and drop the icon in.
(This part only for gnome, alt+f2 is diffrent in unity) Another way to list known applications is to hit Alt+F2 and click on the app under "Show list of known applications", you can then copy the command text for that program to paste in to
Create New Launcher.
All this will make it extremely easier to make custom launchers, and once setup you can make them without the terminal.
Thank you for taking the time to write this up! I completed the steps and it's great to be able to make launchers so easily now.
– Kamil Slowikowski
Jun 3 '13 at 15:38
4
This is ridiculously complicated ...
– Reinier Post
Sep 4 '16 at 20:15
What could be the reason that tweaker not working? I enabled desktop icons on Gnome 3.28.1 but they did not appear.
– Suncatcher
May 6 at 11:35
Desktop icon support was completely removed In new versions.
– Mateo
May 8 at 20:40
add a comment |
up vote
28
down vote
Create the .desktop file in /usr/share/applications/
gksudo gedit /usr/share/applications/give-any-name.desktop
Paste the following text
[Desktop Entry]
Type=Application
Terminal=false
Icon=/path/to/icon/icon.png
Name=give-name-here
Exec=/path/to/file/executable
Categories=Utility;
Give to Name the name you want.
As for Icon and Exec, use either a full path or a "system" name. For example, the VLC video player icon is either /usr/share/icons/hicolor/48x48/apps/vlc.png or simply vlc (without the .png extension).
For Categories, consult the XDG Standards list.
well I cannot find the applications folder in my computer...
– user590849
Jun 2 '12 at 14:27
you mean there is no directory namedapplications
in/usr/share/
? How it can be possible?
– Rahul Virpara
Jun 2 '12 at 15:52
yes well I found it out. Thanks for the solution though. It works like a charm.
– user590849
Jun 3 '12 at 4:02
@virpara why respectively ? I got it working ok in another order but maybe I was missing something?
– Magpie
Jul 21 '12 at 18:42
@Magpie you are right. Order doesn't matter here. It's my mistake.
– Rahul Virpara
Jul 21 '12 at 19:07
|
show 1 more comment
up vote
12
down vote
An easier way to create a launcher for a program:
If you can find the program in your dash, just click and drag the icon for the program in your dash onto your desktop or wherever else you would like it. :)
1
Does not work form me (error message) in Ubuntu 14.04
– BurninLeo
Feb 5 '15 at 9:42
You may have to use the middle mouse button. This creates a symbolic link to the .desktop file. It still won't work unless the .desktop file is executable.
– Seppo Enarvi
Jul 21 '17 at 16:51
add a comment |
up vote
11
down vote
In 14.04 / 15.10 / 16.04 /17.04 / 17.10 To create a shortcut on the desktop to an existing application: the simplest solution (not found in the other answers as far as I can see) is to copy the application's desktop file to the Desktop: go to /usr/share/applications,
right click on the application's desktop file >copy
, go to your desktop, right click >paste
. Don't forget to make it executable, its correct icon will appear after you made it executable.
Simply drag and drop the icon from Dash on to the Desktop does not work in 14.04.
1
This worked for me in 14.04:xdg-desktop-icon install /usr/share/applications/google-chrome.desktop
– Adam Monsen
Jul 25 '14 at 16:48
There is noPaste
on RMB on my Gnome 3.28.1
– Suncatcher
May 6 at 10:03
@Suncatcher That is because 3.28 has no support for desktop icons at all anymore...
– Jacob Vlijm
May 6 at 10:20
add a comment |
up vote
5
down vote
Make a file called something.desktop
, open it in gedit and type:
[Desktop Entry]
Name=Launcher Name
Comment=Launcher Comment
Exec=Command to Execute
Terminal=false
Type=Application
Icon=Path to Icon
Put this is /usr/share/applications
and when you run it right click the app in the Unity Launcher and tick "Keep in launcher" (if you want it in the Unity Launcher), or just put it on your desktop if you want a Desktop launcher.
Put this file in ~/.local/share/applications
if you want to apply this to your user.
Jurriaan has made a graphical python app to do all this for you, it can be downloaded here: http://jurschreuder.nl/UnityLaunchCreator.tar.gz
add a comment |
up vote
3
down vote
Considering previous answer by Scaine , the gnome-panel
way installs dependencies, but at the very bottom of things - we don't really need those, we just need to have .desktop
files created. Thus , I've put a small script that does exactly that, the graphical way, creating a named .desktop
file in the ~/Desktop
folder, readily available for use and pinning to the Unity launcher. Not the best scripting here, but does the job.
This can be saved as file named makeLauncher.sh
, change permissions from Right Click -> Properties -> Permissions -> Allow executing file as program, and it's ready to go.
#!/bin/bash
FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
--add-entry="Program Name"
--add-entry="Command or path to file"
--add-entry="Terminal app(true/false)"
--add-entry="Icon (path)")
[ $? == 0 ] || exit 1
awk -F'|' -v home="$HOME" '{
FILE = home"/Desktop/"$1".desktop"
print "[Desktop Entry]" >> FILE
print "Type=Application" >> FILE
print "Name="$1 >> FILE
print "Exec="$2 >> FILE
print "Terminal="$3 >> FILE
if ($4 !~ /^[ ]*$/)
print "Icon="$4 >> FILE ;
system("chmod 755 " FILE);
}' <<< "$FORM"
And here's how it looks
Side note: sadly, zenity's form field doesn't have checkbox for a forms widget, so the true/false for Terminal app option has to be typed. I am considering rewriting this script in PyQt.
1
Suggestions: Terminal app should be a checkbox - it would make the code a bit more complex, but easier for the user. Icon could be optionally a file picker.
– muru
Feb 6 '16 at 7:31
@muru good suggestion - I'll work on it.
– Sergiy Kolodyazhnyy
Feb 6 '16 at 7:34
I have added the script to a Nautilus action but it creates the launcher only on the desktop. Is there a way to create the launcher inside the folder where the script is executed (with that action)?
– cipricus
Mar 24 '17 at 14:29
1
@cipricus well, yes, possible: the script writes toFILE = home"/Desktop/"$1".desktop"
, wherehome
is defined as variable to theawk
command in-v home="$HOME"
part. What you can do, is remove all references toFILE
from theawk
command, and redirect the command itself to a specific filename you want to create via> somefile.desktop
. It's not too difficult , just need to rewrite that specific part. Please remind me in couple of days. I will try to update this answer tomorrow, but i might forget.
– Sergiy Kolodyazhnyy
Mar 25 '17 at 11:23
Thanks! - I came up with this more simplistic answer (Add 'Create launcher' to Nautilus context menu (withoutgnome-desktop-item-edit
)) but I think yours might be nicer.
– cipricus
Mar 25 '17 at 11:33
add a comment |
up vote
2
down vote
please be aware of this wiki page I've made, because I've noticed that questions on desktop and unity launchers are very often :) https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
2
Please add a summary or steps for what the user can do, just a link is not very helpful.
– Mateo
May 19 '12 at 0:22
add a comment |
up vote
2
down vote
This can be easily be achieved using nautilus-action
& gnome-desktop-item-edit
.
STEPS:
Install nautilus-action by running following command in terminal:
sudo apt-get install nautilus-action
Launch Nautilus-Actions and create a new action.
Under the Action tab, check on "Display item in location context menu", then in Context label, enter this: Create Launcher.
Open now the Command tab and enter the following details:
Label:
Create Launcher
Path:
gnome-desktop-item-edit
Parameters:
--create-new %f
Working directory:
Click Browse and select your Desktop folder.
Leave rest of the tabs as it is.Save now your command and exit:
Restart Nautilus:
nautilus -q
You can add shortcuts from the context menu by selecting Create Launcher
The shortcut is added in your current directory you right-click on
DONE!
Minor correction, please correct the first command to read "nautilus-actions" not "nautilus-action".
– Daniel Dropik
Nov 25 '15 at 1:58
add a comment |
up vote
1
down vote
Install "Create Launcher" from the Ubuntu Software Center. You can search this name to find it there. See also:
Link - Ubuntu apps directory
add a comment |
up vote
1
down vote
I've noticed that both gnome-panel and gnome-tweak-tool need a load of dependencies, even with --no-recommends
.
The method I've used so far is to choose an arbitrary icon from the Dash, such as Firefox, and drag it to the desktop. You can't drag a icon from the Launcher, it doesn't let you. So it has to be the Dash, so press the Super (or Windows) key on your keyboard to launch the Dash, make sure it's not fullscreen (toggle it with the button at the top-left), then drag any icon at all onto your desktop.
Then right-click on the new desktop icon and change the path, description, icon (and comment if you like). Then drag this new launcher to somewhere like /home/yourname/Misc/Apps
and finally, from there, drag it to the Launcher.
Note : If you drag the file from the Desktop to the Launcher directly, then delete the Desktop file, the Launcher entry will stop working, even though it looks fine. I assume it makes some kind of shortcut to the original which you've just deleted.
This doesn't work (any more?) in Ubuntu 13.04. Dragging a Launcher icon from the Dash does nothing. It just "goes back" to the Launcher. I think this used to work in previous Ubuntu versions. I don't know why they keep removing useful features.
– matteo
Oct 25 '13 at 17:20
Yeah, you can't drag from the launcher, you must drag from the Dash - so press your Super key, to bring up Dash, then any icon will do. You'll also have to NOT have the Dash full screen (there's a size toggle at the top-left) so that you can see the Desktop to drag your icon to. Still works in 13.04. I haven't tried this in 13.10 yet though.
– Scaine
Oct 28 '13 at 20:57
Oh I see, I thought you were talking about the launcher, because I confuse the names and the dash covered the whole screen on the machine I tried it on, so I couldn't drag anything from the dash. But I'm not sure it was fullscreen, I think it's that the screen is too small and the non-fullscreen dash fills it all. What can one do in such a case? It doesn't seem like you can resize the dash
– matteo
Oct 29 '13 at 9:21
1
Hi Matteo - sorry I didn't see this earlier. But I can't help anyway! You can't resize the Dash as such, but there is a toggle button at the top-left of the screen which should toggle between fullscreen and "netbook" mode which takes up a proportion of the screen. Perhaps that proportion has a minimum which is still too big for your screen? I'm not sure. Worth searching on this site, I suppose?
– Scaine
Nov 5 '13 at 20:24
add a comment |
up vote
1
down vote
I have developed a little command line program for launchers creation. Example:
iconize -n "Sublime Text" -p /home/marco/Desktop/sublime/sublime -i /home/marco/Desktop/sublime/Icon/256x256/sublime_text.png
It will create a corresponding desktop entry inside ~/.local/share/applications
:
[Desktop Entry]
Type=Application
Name=Sublime Text
Exec=/home/marco/Scrivania/sublime/sublime %U
Icon=/home/marco/Scrivania/sublime/Icon/256x256/sublime_text.png
You can then move it to your desktop like this:
mv ~/.local/share/applications/sublime-text.desktop ~/Desktop
More powerful alternatives are Alacarte and MenuLibre (they have more functions and a graphical user interface).
the link to the script is dead
– cipricus
Mar 24 '17 at 14:28
@cipricus You're right. Fixed. Thank you.
– Marco Liceti
Mar 27 '17 at 7:42
add a comment |
up vote
1
down vote
How to create both a Desktop shortcut AND a Unity Dash ("start menu") icon option using one .desktop file and two symlinks
In this example we will make a launcher for Arduino v1.8.5. The executables were previously extracted into this folder: "~/Downloads/Install_Files/Arduino/arduino-1.8.5". The main executable file to launch the application is stored at "~/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino".
Follow my example below, updating all steps as necessary for your application, including modifying the .desktop file contents as required.
My strategy will be to create a single .desktop file to act as the "master" launcher for the program, then we will create two symbolic links (symlinks) to this file to allow us to launch the program (1) via an icon on your Desktop, and (2) using the Unity Application launcher search menu.
Q: Why do it this way?
A: Well, it allows you to only have to edit a single .desktop file to make changes to the shortcuts in both places at once.
Q: Why not just do the .desktop file directly on the Desktop and then make a single symlink for the Unity application launcher?
A: because this way the .desktop file sits safely in a different folder where you and your kids won't accidentally delete it from the Desktop, so you know it won't get accidentally modified or deleted.
STEPS:
1. Make a launcher (.desktop file), using a text editor of your choice, editing it as required. Store it in "~/Desktop_launchers/Arduino_1_8_5.desktop".
Here are the commands, with me using the "leafpad" GUI text editor:
mkdir ~/Desktop_launchers
sudo apt update && apt install leafpad
cd ~/Desktop_launchers
leafpad Arduino_1_8_5.desktop
Copy and paste the following into the "Arduino_1_8_5.desktop" file you just created.
- Note that my home ("~") directory is "/home/gabriels". Modify it below for your username.
- Also note that for
Exec
paths with spaces, you must use the single quotes ('
) around the path name below, or else you will get an "error launching the application" when you click on the run link. - For the
Icon
path, however, even if it has spaces in the path, you must not use the single quotes around the path or else the icon won't properly show up on the link.
Arduino_1_8_5.desktop
file contents:
[Desktop Entry]
Name=Arduino 1.8.5
Comment=
Exec='/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino'
Icon=/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/lib/arduino.png
Terminal=false
Type=Application
StartupNotify=true
Save and exit.
2. Make it executable.
Note: this step is important! You must do this BEFORE creating the symbolic link in the next step below or else the symbolic link you're about to create won't work properly as a shortcut to launch the program from your Desktop.
chmod +x Arduino_1_8_5.desktop
3. Make a symbolic link to your above .desktop launcher on the Desktop so you can launch it from there:
Command Format: "ln -s /path/to/file /path/to/symlink_to_make"
ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop ~/Desktop/Arduino_1_8_5.desktop
Note that ending your symlink with ".desktop" is mandatory or else it won't display or work properly as a Desktop shortcut.
4. Make a symbolic link to it on the Unity Applications menu so you can launch it from there too:
sudo ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop /usr/share/applications/Arduino_1_8_5.desktop
Notes:
- Unity application .desktop files are stored in: "/usr/share/applications"
- Side note to add to your general knowledge: the .desktop files in the applications directory, unlike on the Desktop, don't need to be marked executable to work.
5. Done!
- Now if you ever need to update the desktop file, update it directly in only one place: "~/Desktop_launchers/Arduino_1_8_5.desktop", and the changes will automatically be recognized by the symlinks on the Desktop and in "/usr/share/applications".
- If the Desktop icon doesn't update after changing it, click on the Desktop then hit either F5 or Ctrl + R to refresh the Desktop icons.
- To remove the shortcuts simply delete the symlinks from the Desktop and from "/usr/share/applications" as follows:
rm ~/Desktop/Arduino_1_8_5.desktop
sudo rm /usr/share/applications/Arduino_1_8_5.desktop
Screenshots:
My Desktop with the newly-created shortcut:
The Unity Launcher menu with the newly-created shortcut:
Additional Reading:
For additional knowledge and alternate techniques, see the Official Ubuntu Documentation on "UnityLaunchersAndDesktopFiles" here: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
add a comment |
up vote
0
down vote
These launchers have one problem: you can't use them from the web browser, for example to attach archives to email messages or to upload files to sites like http://2shared.com/
There is an easy solution:
- Open a terminal window
- Run
ln -s /destination/directory ~/Desktop/nameofshortcut
for example: ln -s /data/music ~/Desktop/good_music
This way an icon appears at the desktop, with the image of a folder with an arrow below it, that represents a shortcut, instead of the spring or rocket of the launchers.
add a comment |
up vote
0
down vote
In 14.04, you can right-click on the executable and choose Make Link
, then you can drag and drop that link onto your desktop.
To attach this program to your launcher, simply start the program and then while it's running, right-click the icon on your launcher bar and choose Lock to Launcher
.
Note: adding programs to your launcher bar in this way does not work with WINE applications, however you can still add WINE apps to your desktop this way.
add a comment |
up vote
-1
down vote
- Start the terminal application. (Hotkey: Ctrl+Alt+T)
- Use the command sudo nautilus to launch the file manager as super user (admin level of your account). (*)
- Browse Computer > usr > share > applications and scroll down to the application you want to use.
- Drag from the Nautilus file manager window to the desktop. (Make sure the nautilus window is not maximized.)
- Close Nautilus and exit from the terminal.
- Drag the new launcher around the desktop to the place you want it.
(*) You will get an error if you just try to drag/drop with Nautilus as a normal level user. That error was what made me figure out the six steps listed here. It's another example of "failure" being a step on the path to success.
Starting Nautilus as super user is entirely unnecessary. Just press and hold Ctrl+Shift while releasing the mouse button on the file to create a short cut to after dragging it to its destination (step 4).
– David Foerster
Sep 28 '14 at 18:19
add a comment |
protected by Sergiy Kolodyazhnyy Feb 6 '16 at 7:11
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
18 Answers
18
active
oldest
votes
18 Answers
18
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
190
down vote
accepted
The old GUI dialog is still available if you still want to use this:
Using ALT+F2 type
gnome-desktop-item-edit --create-new ~/Desktop
This will launch the old GUI Dialog and create a launcher on your Desktop:
Prerequisites
gnome-desktop-item-edit
is installed automatically if you have installed gnome-shell/gnome-fallback. It is also installed automatically if you have previously installed gnome-tweak-tool
.
Alternatively, you can install the old gnome-panel without much of the bulk:
sudo apt-get install --no-install-recommends gnome-panel
You can later move the MyLauncher.Desktop
file from ~/Desktop
to ~/.local/share/applications/
to it them appear on all applications dashboards.
57
While this is a fantastic answer, it is really sad that Ubuntu has made it this difficult.
– djangofan
Jan 30 '12 at 17:36
15
What if you created a launcher, that launched "create launcher" would puttinggnome-desktop-item-edit --create-new ~/Desktop
into the command section work to do this, then you would have a desktop icon to create launchers.
– Mateo
Apr 28 '12 at 4:08
1
Oh, by typing it in a terminal I can see why it doesn't work: $ gnome-desktop-item-edit --create-new ~/Desktop The program 'gnome-desktop-item-edit' is currently not installed. You can install it by typing: sudo apt-get install gnome-panel
– matteo
Oct 25 '13 at 16:23
14
Worth adding that a good place for these is in~/.local/share/applications/
- then they turn up in the dash.
– artfulrobot
Sep 19 '14 at 10:25
6
I don't understand why it should be that hard ?
– Adelin
May 28 '16 at 12:08
|
show 10 more comments
up vote
190
down vote
accepted
The old GUI dialog is still available if you still want to use this:
Using ALT+F2 type
gnome-desktop-item-edit --create-new ~/Desktop
This will launch the old GUI Dialog and create a launcher on your Desktop:
Prerequisites
gnome-desktop-item-edit
is installed automatically if you have installed gnome-shell/gnome-fallback. It is also installed automatically if you have previously installed gnome-tweak-tool
.
Alternatively, you can install the old gnome-panel without much of the bulk:
sudo apt-get install --no-install-recommends gnome-panel
You can later move the MyLauncher.Desktop
file from ~/Desktop
to ~/.local/share/applications/
to it them appear on all applications dashboards.
57
While this is a fantastic answer, it is really sad that Ubuntu has made it this difficult.
– djangofan
Jan 30 '12 at 17:36
15
What if you created a launcher, that launched "create launcher" would puttinggnome-desktop-item-edit --create-new ~/Desktop
into the command section work to do this, then you would have a desktop icon to create launchers.
– Mateo
Apr 28 '12 at 4:08
1
Oh, by typing it in a terminal I can see why it doesn't work: $ gnome-desktop-item-edit --create-new ~/Desktop The program 'gnome-desktop-item-edit' is currently not installed. You can install it by typing: sudo apt-get install gnome-panel
– matteo
Oct 25 '13 at 16:23
14
Worth adding that a good place for these is in~/.local/share/applications/
- then they turn up in the dash.
– artfulrobot
Sep 19 '14 at 10:25
6
I don't understand why it should be that hard ?
– Adelin
May 28 '16 at 12:08
|
show 10 more comments
up vote
190
down vote
accepted
up vote
190
down vote
accepted
The old GUI dialog is still available if you still want to use this:
Using ALT+F2 type
gnome-desktop-item-edit --create-new ~/Desktop
This will launch the old GUI Dialog and create a launcher on your Desktop:
Prerequisites
gnome-desktop-item-edit
is installed automatically if you have installed gnome-shell/gnome-fallback. It is also installed automatically if you have previously installed gnome-tweak-tool
.
Alternatively, you can install the old gnome-panel without much of the bulk:
sudo apt-get install --no-install-recommends gnome-panel
You can later move the MyLauncher.Desktop
file from ~/Desktop
to ~/.local/share/applications/
to it them appear on all applications dashboards.
The old GUI dialog is still available if you still want to use this:
Using ALT+F2 type
gnome-desktop-item-edit --create-new ~/Desktop
This will launch the old GUI Dialog and create a launcher on your Desktop:
Prerequisites
gnome-desktop-item-edit
is installed automatically if you have installed gnome-shell/gnome-fallback. It is also installed automatically if you have previously installed gnome-tweak-tool
.
Alternatively, you can install the old gnome-panel without much of the bulk:
sudo apt-get install --no-install-recommends gnome-panel
You can later move the MyLauncher.Desktop
file from ~/Desktop
to ~/.local/share/applications/
to it them appear on all applications dashboards.
edited Dec 9 '15 at 7:22
Jens Erat
4,08972031
4,08972031
answered Oct 15 '11 at 15:35
fossfreedom♦
148k36326371
148k36326371
57
While this is a fantastic answer, it is really sad that Ubuntu has made it this difficult.
– djangofan
Jan 30 '12 at 17:36
15
What if you created a launcher, that launched "create launcher" would puttinggnome-desktop-item-edit --create-new ~/Desktop
into the command section work to do this, then you would have a desktop icon to create launchers.
– Mateo
Apr 28 '12 at 4:08
1
Oh, by typing it in a terminal I can see why it doesn't work: $ gnome-desktop-item-edit --create-new ~/Desktop The program 'gnome-desktop-item-edit' is currently not installed. You can install it by typing: sudo apt-get install gnome-panel
– matteo
Oct 25 '13 at 16:23
14
Worth adding that a good place for these is in~/.local/share/applications/
- then they turn up in the dash.
– artfulrobot
Sep 19 '14 at 10:25
6
I don't understand why it should be that hard ?
– Adelin
May 28 '16 at 12:08
|
show 10 more comments
57
While this is a fantastic answer, it is really sad that Ubuntu has made it this difficult.
– djangofan
Jan 30 '12 at 17:36
15
What if you created a launcher, that launched "create launcher" would puttinggnome-desktop-item-edit --create-new ~/Desktop
into the command section work to do this, then you would have a desktop icon to create launchers.
– Mateo
Apr 28 '12 at 4:08
1
Oh, by typing it in a terminal I can see why it doesn't work: $ gnome-desktop-item-edit --create-new ~/Desktop The program 'gnome-desktop-item-edit' is currently not installed. You can install it by typing: sudo apt-get install gnome-panel
– matteo
Oct 25 '13 at 16:23
14
Worth adding that a good place for these is in~/.local/share/applications/
- then they turn up in the dash.
– artfulrobot
Sep 19 '14 at 10:25
6
I don't understand why it should be that hard ?
– Adelin
May 28 '16 at 12:08
57
57
While this is a fantastic answer, it is really sad that Ubuntu has made it this difficult.
– djangofan
Jan 30 '12 at 17:36
While this is a fantastic answer, it is really sad that Ubuntu has made it this difficult.
– djangofan
Jan 30 '12 at 17:36
15
15
What if you created a launcher, that launched "create launcher" would putting
gnome-desktop-item-edit --create-new ~/Desktop
into the command section work to do this, then you would have a desktop icon to create launchers.– Mateo
Apr 28 '12 at 4:08
What if you created a launcher, that launched "create launcher" would putting
gnome-desktop-item-edit --create-new ~/Desktop
into the command section work to do this, then you would have a desktop icon to create launchers.– Mateo
Apr 28 '12 at 4:08
1
1
Oh, by typing it in a terminal I can see why it doesn't work: $ gnome-desktop-item-edit --create-new ~/Desktop The program 'gnome-desktop-item-edit' is currently not installed. You can install it by typing: sudo apt-get install gnome-panel
– matteo
Oct 25 '13 at 16:23
Oh, by typing it in a terminal I can see why it doesn't work: $ gnome-desktop-item-edit --create-new ~/Desktop The program 'gnome-desktop-item-edit' is currently not installed. You can install it by typing: sudo apt-get install gnome-panel
– matteo
Oct 25 '13 at 16:23
14
14
Worth adding that a good place for these is in
~/.local/share/applications/
- then they turn up in the dash.– artfulrobot
Sep 19 '14 at 10:25
Worth adding that a good place for these is in
~/.local/share/applications/
- then they turn up in the dash.– artfulrobot
Sep 19 '14 at 10:25
6
6
I don't understand why it should be that hard ?
– Adelin
May 28 '16 at 12:08
I don't understand why it should be that hard ?
– Adelin
May 28 '16 at 12:08
|
show 10 more comments
up vote
101
down vote
You can do it manually. Make a new text-file named something.desktop and write this in there:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=command to run here
Name=visible name here
Comment=comment here
Icon=icon path here
Dont forget to make the file executable (chmod +x something.desktop
).
5
Thanks for your answer. Where do i need to place the file, i can place it in the .local/share/applications folder and drag and drop it into the launcher panel but that's not what i want. I want to have them on my desktop instead of the launcher panel.
– tinuz
Oct 4 '11 at 14:33
Than put it onto your Desktop! You can place it everywhere you want.
– fnkr
Oct 4 '11 at 18:02
2
Thanks for the answer it now works .. i had to make the file executable :)
– tinuz
Oct 4 '11 at 19:15
This works except you need to mention that the file needs to have executable permissions.
– DJTripleThreat
Nov 5 '11 at 22:24
5
This is a major pain. You need to edit a text file to create a shortcut? Why do we make it way more difficult than on Windows? And how do you come up with an "Icon path here" when you have an executable? Good luck extracting icons from that - a whole 'nother quest. It's amazing how difficult this simplest of tasks is on Ubuntu!
– Dan Dascalescu
Jan 24 at 8:25
|
show 3 more comments
up vote
101
down vote
You can do it manually. Make a new text-file named something.desktop and write this in there:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=command to run here
Name=visible name here
Comment=comment here
Icon=icon path here
Dont forget to make the file executable (chmod +x something.desktop
).
5
Thanks for your answer. Where do i need to place the file, i can place it in the .local/share/applications folder and drag and drop it into the launcher panel but that's not what i want. I want to have them on my desktop instead of the launcher panel.
– tinuz
Oct 4 '11 at 14:33
Than put it onto your Desktop! You can place it everywhere you want.
– fnkr
Oct 4 '11 at 18:02
2
Thanks for the answer it now works .. i had to make the file executable :)
– tinuz
Oct 4 '11 at 19:15
This works except you need to mention that the file needs to have executable permissions.
– DJTripleThreat
Nov 5 '11 at 22:24
5
This is a major pain. You need to edit a text file to create a shortcut? Why do we make it way more difficult than on Windows? And how do you come up with an "Icon path here" when you have an executable? Good luck extracting icons from that - a whole 'nother quest. It's amazing how difficult this simplest of tasks is on Ubuntu!
– Dan Dascalescu
Jan 24 at 8:25
|
show 3 more comments
up vote
101
down vote
up vote
101
down vote
You can do it manually. Make a new text-file named something.desktop and write this in there:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=command to run here
Name=visible name here
Comment=comment here
Icon=icon path here
Dont forget to make the file executable (chmod +x something.desktop
).
You can do it manually. Make a new text-file named something.desktop and write this in there:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=command to run here
Name=visible name here
Comment=comment here
Icon=icon path here
Dont forget to make the file executable (chmod +x something.desktop
).
edited Oct 14 '13 at 9:34
answered Oct 4 '11 at 14:23
fnkr
1,2901710
1,2901710
5
Thanks for your answer. Where do i need to place the file, i can place it in the .local/share/applications folder and drag and drop it into the launcher panel but that's not what i want. I want to have them on my desktop instead of the launcher panel.
– tinuz
Oct 4 '11 at 14:33
Than put it onto your Desktop! You can place it everywhere you want.
– fnkr
Oct 4 '11 at 18:02
2
Thanks for the answer it now works .. i had to make the file executable :)
– tinuz
Oct 4 '11 at 19:15
This works except you need to mention that the file needs to have executable permissions.
– DJTripleThreat
Nov 5 '11 at 22:24
5
This is a major pain. You need to edit a text file to create a shortcut? Why do we make it way more difficult than on Windows? And how do you come up with an "Icon path here" when you have an executable? Good luck extracting icons from that - a whole 'nother quest. It's amazing how difficult this simplest of tasks is on Ubuntu!
– Dan Dascalescu
Jan 24 at 8:25
|
show 3 more comments
5
Thanks for your answer. Where do i need to place the file, i can place it in the .local/share/applications folder and drag and drop it into the launcher panel but that's not what i want. I want to have them on my desktop instead of the launcher panel.
– tinuz
Oct 4 '11 at 14:33
Than put it onto your Desktop! You can place it everywhere you want.
– fnkr
Oct 4 '11 at 18:02
2
Thanks for the answer it now works .. i had to make the file executable :)
– tinuz
Oct 4 '11 at 19:15
This works except you need to mention that the file needs to have executable permissions.
– DJTripleThreat
Nov 5 '11 at 22:24
5
This is a major pain. You need to edit a text file to create a shortcut? Why do we make it way more difficult than on Windows? And how do you come up with an "Icon path here" when you have an executable? Good luck extracting icons from that - a whole 'nother quest. It's amazing how difficult this simplest of tasks is on Ubuntu!
– Dan Dascalescu
Jan 24 at 8:25
5
5
Thanks for your answer. Where do i need to place the file, i can place it in the .local/share/applications folder and drag and drop it into the launcher panel but that's not what i want. I want to have them on my desktop instead of the launcher panel.
– tinuz
Oct 4 '11 at 14:33
Thanks for your answer. Where do i need to place the file, i can place it in the .local/share/applications folder and drag and drop it into the launcher panel but that's not what i want. I want to have them on my desktop instead of the launcher panel.
– tinuz
Oct 4 '11 at 14:33
Than put it onto your Desktop! You can place it everywhere you want.
– fnkr
Oct 4 '11 at 18:02
Than put it onto your Desktop! You can place it everywhere you want.
– fnkr
Oct 4 '11 at 18:02
2
2
Thanks for the answer it now works .. i had to make the file executable :)
– tinuz
Oct 4 '11 at 19:15
Thanks for the answer it now works .. i had to make the file executable :)
– tinuz
Oct 4 '11 at 19:15
This works except you need to mention that the file needs to have executable permissions.
– DJTripleThreat
Nov 5 '11 at 22:24
This works except you need to mention that the file needs to have executable permissions.
– DJTripleThreat
Nov 5 '11 at 22:24
5
5
This is a major pain. You need to edit a text file to create a shortcut? Why do we make it way more difficult than on Windows? And how do you come up with an "Icon path here" when you have an executable? Good luck extracting icons from that - a whole 'nother quest. It's amazing how difficult this simplest of tasks is on Ubuntu!
– Dan Dascalescu
Jan 24 at 8:25
This is a major pain. You need to edit a text file to create a shortcut? Why do we make it way more difficult than on Windows? And how do you come up with an "Icon path here" when you have an executable? Good luck extracting icons from that - a whole 'nother quest. It's amazing how difficult this simplest of tasks is on Ubuntu!
– Dan Dascalescu
Jan 24 at 8:25
|
show 3 more comments
up vote
39
down vote
There is cooler way:
Arronax
Original picture taken from iloveubuntu.net which currently inaccessible
To install, type open a terminal with Ctrl+Alt+T and write:
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install arronax
nautilus -q
This is cooler because it has drag&drop and more functions with a GUI.
More about Arronax on ubuntugeek.com.
That is a nice tool, Loved it. Thanks!
– Anwar
Mar 3 '14 at 12:37
This a a very neat tool. See the authors site florian-diesch.de/software/arronax
– Rudiger Wolf
Sep 23 '14 at 9:04
Now alacarte is broken, this is the way. It doesn't show you all your launchers like alacarte did, but it lets you set more settings on them...
– user77164
Feb 9 '15 at 6:35
This is really nice, and it's not just for Unity. Works well on MATE too !
– JonasCz
Jun 16 '16 at 17:40
THANK YOU! reported a few errors on install (Ubuntu 16), but it worked perfectly! Shows the correct icon in the launcher, too!
– dwn
Sep 18 '16 at 15:41
|
show 1 more comment
up vote
39
down vote
There is cooler way:
Arronax
Original picture taken from iloveubuntu.net which currently inaccessible
To install, type open a terminal with Ctrl+Alt+T and write:
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install arronax
nautilus -q
This is cooler because it has drag&drop and more functions with a GUI.
More about Arronax on ubuntugeek.com.
That is a nice tool, Loved it. Thanks!
– Anwar
Mar 3 '14 at 12:37
This a a very neat tool. See the authors site florian-diesch.de/software/arronax
– Rudiger Wolf
Sep 23 '14 at 9:04
Now alacarte is broken, this is the way. It doesn't show you all your launchers like alacarte did, but it lets you set more settings on them...
– user77164
Feb 9 '15 at 6:35
This is really nice, and it's not just for Unity. Works well on MATE too !
– JonasCz
Jun 16 '16 at 17:40
THANK YOU! reported a few errors on install (Ubuntu 16), but it worked perfectly! Shows the correct icon in the launcher, too!
– dwn
Sep 18 '16 at 15:41
|
show 1 more comment
up vote
39
down vote
up vote
39
down vote
There is cooler way:
Arronax
Original picture taken from iloveubuntu.net which currently inaccessible
To install, type open a terminal with Ctrl+Alt+T and write:
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install arronax
nautilus -q
This is cooler because it has drag&drop and more functions with a GUI.
More about Arronax on ubuntugeek.com.
There is cooler way:
Arronax
Original picture taken from iloveubuntu.net which currently inaccessible
To install, type open a terminal with Ctrl+Alt+T and write:
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install arronax
nautilus -q
This is cooler because it has drag&drop and more functions with a GUI.
More about Arronax on ubuntugeek.com.
edited Feb 24 at 8:07
MadMike
3,78172244
3,78172244
answered Jul 16 '12 at 14:25
hingev
4,85943057
4,85943057
That is a nice tool, Loved it. Thanks!
– Anwar
Mar 3 '14 at 12:37
This a a very neat tool. See the authors site florian-diesch.de/software/arronax
– Rudiger Wolf
Sep 23 '14 at 9:04
Now alacarte is broken, this is the way. It doesn't show you all your launchers like alacarte did, but it lets you set more settings on them...
– user77164
Feb 9 '15 at 6:35
This is really nice, and it's not just for Unity. Works well on MATE too !
– JonasCz
Jun 16 '16 at 17:40
THANK YOU! reported a few errors on install (Ubuntu 16), but it worked perfectly! Shows the correct icon in the launcher, too!
– dwn
Sep 18 '16 at 15:41
|
show 1 more comment
That is a nice tool, Loved it. Thanks!
– Anwar
Mar 3 '14 at 12:37
This a a very neat tool. See the authors site florian-diesch.de/software/arronax
– Rudiger Wolf
Sep 23 '14 at 9:04
Now alacarte is broken, this is the way. It doesn't show you all your launchers like alacarte did, but it lets you set more settings on them...
– user77164
Feb 9 '15 at 6:35
This is really nice, and it's not just for Unity. Works well on MATE too !
– JonasCz
Jun 16 '16 at 17:40
THANK YOU! reported a few errors on install (Ubuntu 16), but it worked perfectly! Shows the correct icon in the launcher, too!
– dwn
Sep 18 '16 at 15:41
That is a nice tool, Loved it. Thanks!
– Anwar
Mar 3 '14 at 12:37
That is a nice tool, Loved it. Thanks!
– Anwar
Mar 3 '14 at 12:37
This a a very neat tool. See the authors site florian-diesch.de/software/arronax
– Rudiger Wolf
Sep 23 '14 at 9:04
This a a very neat tool. See the authors site florian-diesch.de/software/arronax
– Rudiger Wolf
Sep 23 '14 at 9:04
Now alacarte is broken, this is the way. It doesn't show you all your launchers like alacarte did, but it lets you set more settings on them...
– user77164
Feb 9 '15 at 6:35
Now alacarte is broken, this is the way. It doesn't show you all your launchers like alacarte did, but it lets you set more settings on them...
– user77164
Feb 9 '15 at 6:35
This is really nice, and it's not just for Unity. Works well on MATE too !
– JonasCz
Jun 16 '16 at 17:40
This is really nice, and it's not just for Unity. Works well on MATE too !
– JonasCz
Jun 16 '16 at 17:40
THANK YOU! reported a few errors on install (Ubuntu 16), but it worked perfectly! Shows the correct icon in the launcher, too!
– dwn
Sep 18 '16 at 15:41
THANK YOU! reported a few errors on install (Ubuntu 16), but it worked perfectly! Shows the correct icon in the launcher, too!
– dwn
Sep 18 '16 at 15:41
|
show 1 more comment
up vote
32
down vote
No longer works in latest version, desktop icons were completely removed.
This Is a solution to get it back on the right click menu In Gnome and Unity,
1- Install gnome-tweak-tool , if you don't already have it,
In terminal paste-
sudo apt-get install gnome-tweak-tool
2- Then type the following to launch it
gnome-tweak-tool
Or use the key shortcut Alt+F2 type gnome-tweak-tool
then click "Run"
3- Navigate to the "Desktop" tab on the left pictured - And turn ON
"Have file manager handle the desktop"
4-Source for this part: 1 Now we are going to create a Script to put on the right click menu -
Open gedit
either by terminal or Alt+F2, Paste the code
gnome-desktop-item-edit ~/Desktop/ --create-new
put only this into the new text document and then save it as "Create New Launcher" no extension needed (you may need to use .sh as extension ex "Create New Launcher.sh", if you can't make it executable in the next step).
5- Now we need to make the file executable, Right click on the file go to > Properties > click Permissions tab > look for "Execute" and check "Allow executing file as program" then close out.
6- Open the file browser, go to > View > Show Hidden Files, now navigate to you home folder, and Place the file in ~/.gnome2/nautilus-scripts
. Shown below -
7- Now we have Create new launcher on the right click menu! Right click on your desktop and go to > Scripts > Create New Launcher
Then fill in the comand information for the application you want,
Shown below-
If you forget what the app's launch command is click "Browse" then navigate to File System > usr > bin which is /usr/bin , these are the applications on your system, most should automatacally find the icon after you click "Open" , although they won't show up before.
If It dosn't show the icon when you get back to the "Create Launcher" box you can drag a icon in by finding the icon in /usr/share/icons .
There are default icons in the various theme folders or specific icons in the /usr/share/icons/hicolor/scalable/apps
or /usr/share/icons/hicolor/48x48/apps
, or if later you want to put an icon in you can right click > properties to drag and drop the icon in.
(This part only for gnome, alt+f2 is diffrent in unity) Another way to list known applications is to hit Alt+F2 and click on the app under "Show list of known applications", you can then copy the command text for that program to paste in to
Create New Launcher.
All this will make it extremely easier to make custom launchers, and once setup you can make them without the terminal.
Thank you for taking the time to write this up! I completed the steps and it's great to be able to make launchers so easily now.
– Kamil Slowikowski
Jun 3 '13 at 15:38
4
This is ridiculously complicated ...
– Reinier Post
Sep 4 '16 at 20:15
What could be the reason that tweaker not working? I enabled desktop icons on Gnome 3.28.1 but they did not appear.
– Suncatcher
May 6 at 11:35
Desktop icon support was completely removed In new versions.
– Mateo
May 8 at 20:40
add a comment |
up vote
32
down vote
No longer works in latest version, desktop icons were completely removed.
This Is a solution to get it back on the right click menu In Gnome and Unity,
1- Install gnome-tweak-tool , if you don't already have it,
In terminal paste-
sudo apt-get install gnome-tweak-tool
2- Then type the following to launch it
gnome-tweak-tool
Or use the key shortcut Alt+F2 type gnome-tweak-tool
then click "Run"
3- Navigate to the "Desktop" tab on the left pictured - And turn ON
"Have file manager handle the desktop"
4-Source for this part: 1 Now we are going to create a Script to put on the right click menu -
Open gedit
either by terminal or Alt+F2, Paste the code
gnome-desktop-item-edit ~/Desktop/ --create-new
put only this into the new text document and then save it as "Create New Launcher" no extension needed (you may need to use .sh as extension ex "Create New Launcher.sh", if you can't make it executable in the next step).
5- Now we need to make the file executable, Right click on the file go to > Properties > click Permissions tab > look for "Execute" and check "Allow executing file as program" then close out.
6- Open the file browser, go to > View > Show Hidden Files, now navigate to you home folder, and Place the file in ~/.gnome2/nautilus-scripts
. Shown below -
7- Now we have Create new launcher on the right click menu! Right click on your desktop and go to > Scripts > Create New Launcher
Then fill in the comand information for the application you want,
Shown below-
If you forget what the app's launch command is click "Browse" then navigate to File System > usr > bin which is /usr/bin , these are the applications on your system, most should automatacally find the icon after you click "Open" , although they won't show up before.
If It dosn't show the icon when you get back to the "Create Launcher" box you can drag a icon in by finding the icon in /usr/share/icons .
There are default icons in the various theme folders or specific icons in the /usr/share/icons/hicolor/scalable/apps
or /usr/share/icons/hicolor/48x48/apps
, or if later you want to put an icon in you can right click > properties to drag and drop the icon in.
(This part only for gnome, alt+f2 is diffrent in unity) Another way to list known applications is to hit Alt+F2 and click on the app under "Show list of known applications", you can then copy the command text for that program to paste in to
Create New Launcher.
All this will make it extremely easier to make custom launchers, and once setup you can make them without the terminal.
Thank you for taking the time to write this up! I completed the steps and it's great to be able to make launchers so easily now.
– Kamil Slowikowski
Jun 3 '13 at 15:38
4
This is ridiculously complicated ...
– Reinier Post
Sep 4 '16 at 20:15
What could be the reason that tweaker not working? I enabled desktop icons on Gnome 3.28.1 but they did not appear.
– Suncatcher
May 6 at 11:35
Desktop icon support was completely removed In new versions.
– Mateo
May 8 at 20:40
add a comment |
up vote
32
down vote
up vote
32
down vote
No longer works in latest version, desktop icons were completely removed.
This Is a solution to get it back on the right click menu In Gnome and Unity,
1- Install gnome-tweak-tool , if you don't already have it,
In terminal paste-
sudo apt-get install gnome-tweak-tool
2- Then type the following to launch it
gnome-tweak-tool
Or use the key shortcut Alt+F2 type gnome-tweak-tool
then click "Run"
3- Navigate to the "Desktop" tab on the left pictured - And turn ON
"Have file manager handle the desktop"
4-Source for this part: 1 Now we are going to create a Script to put on the right click menu -
Open gedit
either by terminal or Alt+F2, Paste the code
gnome-desktop-item-edit ~/Desktop/ --create-new
put only this into the new text document and then save it as "Create New Launcher" no extension needed (you may need to use .sh as extension ex "Create New Launcher.sh", if you can't make it executable in the next step).
5- Now we need to make the file executable, Right click on the file go to > Properties > click Permissions tab > look for "Execute" and check "Allow executing file as program" then close out.
6- Open the file browser, go to > View > Show Hidden Files, now navigate to you home folder, and Place the file in ~/.gnome2/nautilus-scripts
. Shown below -
7- Now we have Create new launcher on the right click menu! Right click on your desktop and go to > Scripts > Create New Launcher
Then fill in the comand information for the application you want,
Shown below-
If you forget what the app's launch command is click "Browse" then navigate to File System > usr > bin which is /usr/bin , these are the applications on your system, most should automatacally find the icon after you click "Open" , although they won't show up before.
If It dosn't show the icon when you get back to the "Create Launcher" box you can drag a icon in by finding the icon in /usr/share/icons .
There are default icons in the various theme folders or specific icons in the /usr/share/icons/hicolor/scalable/apps
or /usr/share/icons/hicolor/48x48/apps
, or if later you want to put an icon in you can right click > properties to drag and drop the icon in.
(This part only for gnome, alt+f2 is diffrent in unity) Another way to list known applications is to hit Alt+F2 and click on the app under "Show list of known applications", you can then copy the command text for that program to paste in to
Create New Launcher.
All this will make it extremely easier to make custom launchers, and once setup you can make them without the terminal.
No longer works in latest version, desktop icons were completely removed.
This Is a solution to get it back on the right click menu In Gnome and Unity,
1- Install gnome-tweak-tool , if you don't already have it,
In terminal paste-
sudo apt-get install gnome-tweak-tool
2- Then type the following to launch it
gnome-tweak-tool
Or use the key shortcut Alt+F2 type gnome-tweak-tool
then click "Run"
3- Navigate to the "Desktop" tab on the left pictured - And turn ON
"Have file manager handle the desktop"
4-Source for this part: 1 Now we are going to create a Script to put on the right click menu -
Open gedit
either by terminal or Alt+F2, Paste the code
gnome-desktop-item-edit ~/Desktop/ --create-new
put only this into the new text document and then save it as "Create New Launcher" no extension needed (you may need to use .sh as extension ex "Create New Launcher.sh", if you can't make it executable in the next step).
5- Now we need to make the file executable, Right click on the file go to > Properties > click Permissions tab > look for "Execute" and check "Allow executing file as program" then close out.
6- Open the file browser, go to > View > Show Hidden Files, now navigate to you home folder, and Place the file in ~/.gnome2/nautilus-scripts
. Shown below -
7- Now we have Create new launcher on the right click menu! Right click on your desktop and go to > Scripts > Create New Launcher
Then fill in the comand information for the application you want,
Shown below-
If you forget what the app's launch command is click "Browse" then navigate to File System > usr > bin which is /usr/bin , these are the applications on your system, most should automatacally find the icon after you click "Open" , although they won't show up before.
If It dosn't show the icon when you get back to the "Create Launcher" box you can drag a icon in by finding the icon in /usr/share/icons .
There are default icons in the various theme folders or specific icons in the /usr/share/icons/hicolor/scalable/apps
or /usr/share/icons/hicolor/48x48/apps
, or if later you want to put an icon in you can right click > properties to drag and drop the icon in.
(This part only for gnome, alt+f2 is diffrent in unity) Another way to list known applications is to hit Alt+F2 and click on the app under "Show list of known applications", you can then copy the command text for that program to paste in to
Create New Launcher.
All this will make it extremely easier to make custom launchers, and once setup you can make them without the terminal.
edited May 8 at 20:41
answered Apr 28 '12 at 23:45
Mateo
7,24584871
7,24584871
Thank you for taking the time to write this up! I completed the steps and it's great to be able to make launchers so easily now.
– Kamil Slowikowski
Jun 3 '13 at 15:38
4
This is ridiculously complicated ...
– Reinier Post
Sep 4 '16 at 20:15
What could be the reason that tweaker not working? I enabled desktop icons on Gnome 3.28.1 but they did not appear.
– Suncatcher
May 6 at 11:35
Desktop icon support was completely removed In new versions.
– Mateo
May 8 at 20:40
add a comment |
Thank you for taking the time to write this up! I completed the steps and it's great to be able to make launchers so easily now.
– Kamil Slowikowski
Jun 3 '13 at 15:38
4
This is ridiculously complicated ...
– Reinier Post
Sep 4 '16 at 20:15
What could be the reason that tweaker not working? I enabled desktop icons on Gnome 3.28.1 but they did not appear.
– Suncatcher
May 6 at 11:35
Desktop icon support was completely removed In new versions.
– Mateo
May 8 at 20:40
Thank you for taking the time to write this up! I completed the steps and it's great to be able to make launchers so easily now.
– Kamil Slowikowski
Jun 3 '13 at 15:38
Thank you for taking the time to write this up! I completed the steps and it's great to be able to make launchers so easily now.
– Kamil Slowikowski
Jun 3 '13 at 15:38
4
4
This is ridiculously complicated ...
– Reinier Post
Sep 4 '16 at 20:15
This is ridiculously complicated ...
– Reinier Post
Sep 4 '16 at 20:15
What could be the reason that tweaker not working? I enabled desktop icons on Gnome 3.28.1 but they did not appear.
– Suncatcher
May 6 at 11:35
What could be the reason that tweaker not working? I enabled desktop icons on Gnome 3.28.1 but they did not appear.
– Suncatcher
May 6 at 11:35
Desktop icon support was completely removed In new versions.
– Mateo
May 8 at 20:40
Desktop icon support was completely removed In new versions.
– Mateo
May 8 at 20:40
add a comment |
up vote
28
down vote
Create the .desktop file in /usr/share/applications/
gksudo gedit /usr/share/applications/give-any-name.desktop
Paste the following text
[Desktop Entry]
Type=Application
Terminal=false
Icon=/path/to/icon/icon.png
Name=give-name-here
Exec=/path/to/file/executable
Categories=Utility;
Give to Name the name you want.
As for Icon and Exec, use either a full path or a "system" name. For example, the VLC video player icon is either /usr/share/icons/hicolor/48x48/apps/vlc.png or simply vlc (without the .png extension).
For Categories, consult the XDG Standards list.
well I cannot find the applications folder in my computer...
– user590849
Jun 2 '12 at 14:27
you mean there is no directory namedapplications
in/usr/share/
? How it can be possible?
– Rahul Virpara
Jun 2 '12 at 15:52
yes well I found it out. Thanks for the solution though. It works like a charm.
– user590849
Jun 3 '12 at 4:02
@virpara why respectively ? I got it working ok in another order but maybe I was missing something?
– Magpie
Jul 21 '12 at 18:42
@Magpie you are right. Order doesn't matter here. It's my mistake.
– Rahul Virpara
Jul 21 '12 at 19:07
|
show 1 more comment
up vote
28
down vote
Create the .desktop file in /usr/share/applications/
gksudo gedit /usr/share/applications/give-any-name.desktop
Paste the following text
[Desktop Entry]
Type=Application
Terminal=false
Icon=/path/to/icon/icon.png
Name=give-name-here
Exec=/path/to/file/executable
Categories=Utility;
Give to Name the name you want.
As for Icon and Exec, use either a full path or a "system" name. For example, the VLC video player icon is either /usr/share/icons/hicolor/48x48/apps/vlc.png or simply vlc (without the .png extension).
For Categories, consult the XDG Standards list.
well I cannot find the applications folder in my computer...
– user590849
Jun 2 '12 at 14:27
you mean there is no directory namedapplications
in/usr/share/
? How it can be possible?
– Rahul Virpara
Jun 2 '12 at 15:52
yes well I found it out. Thanks for the solution though. It works like a charm.
– user590849
Jun 3 '12 at 4:02
@virpara why respectively ? I got it working ok in another order but maybe I was missing something?
– Magpie
Jul 21 '12 at 18:42
@Magpie you are right. Order doesn't matter here. It's my mistake.
– Rahul Virpara
Jul 21 '12 at 19:07
|
show 1 more comment
up vote
28
down vote
up vote
28
down vote
Create the .desktop file in /usr/share/applications/
gksudo gedit /usr/share/applications/give-any-name.desktop
Paste the following text
[Desktop Entry]
Type=Application
Terminal=false
Icon=/path/to/icon/icon.png
Name=give-name-here
Exec=/path/to/file/executable
Categories=Utility;
Give to Name the name you want.
As for Icon and Exec, use either a full path or a "system" name. For example, the VLC video player icon is either /usr/share/icons/hicolor/48x48/apps/vlc.png or simply vlc (without the .png extension).
For Categories, consult the XDG Standards list.
Create the .desktop file in /usr/share/applications/
gksudo gedit /usr/share/applications/give-any-name.desktop
Paste the following text
[Desktop Entry]
Type=Application
Terminal=false
Icon=/path/to/icon/icon.png
Name=give-name-here
Exec=/path/to/file/executable
Categories=Utility;
Give to Name the name you want.
As for Icon and Exec, use either a full path or a "system" name. For example, the VLC video player icon is either /usr/share/icons/hicolor/48x48/apps/vlc.png or simply vlc (without the .png extension).
For Categories, consult the XDG Standards list.
edited Jun 17 at 21:46
kiamlaluno
18611
18611
answered May 30 '12 at 17:23
Rahul Virpara
6,603103247
6,603103247
well I cannot find the applications folder in my computer...
– user590849
Jun 2 '12 at 14:27
you mean there is no directory namedapplications
in/usr/share/
? How it can be possible?
– Rahul Virpara
Jun 2 '12 at 15:52
yes well I found it out. Thanks for the solution though. It works like a charm.
– user590849
Jun 3 '12 at 4:02
@virpara why respectively ? I got it working ok in another order but maybe I was missing something?
– Magpie
Jul 21 '12 at 18:42
@Magpie you are right. Order doesn't matter here. It's my mistake.
– Rahul Virpara
Jul 21 '12 at 19:07
|
show 1 more comment
well I cannot find the applications folder in my computer...
– user590849
Jun 2 '12 at 14:27
you mean there is no directory namedapplications
in/usr/share/
? How it can be possible?
– Rahul Virpara
Jun 2 '12 at 15:52
yes well I found it out. Thanks for the solution though. It works like a charm.
– user590849
Jun 3 '12 at 4:02
@virpara why respectively ? I got it working ok in another order but maybe I was missing something?
– Magpie
Jul 21 '12 at 18:42
@Magpie you are right. Order doesn't matter here. It's my mistake.
– Rahul Virpara
Jul 21 '12 at 19:07
well I cannot find the applications folder in my computer...
– user590849
Jun 2 '12 at 14:27
well I cannot find the applications folder in my computer...
– user590849
Jun 2 '12 at 14:27
you mean there is no directory named
applications
in /usr/share/
? How it can be possible?– Rahul Virpara
Jun 2 '12 at 15:52
you mean there is no directory named
applications
in /usr/share/
? How it can be possible?– Rahul Virpara
Jun 2 '12 at 15:52
yes well I found it out. Thanks for the solution though. It works like a charm.
– user590849
Jun 3 '12 at 4:02
yes well I found it out. Thanks for the solution though. It works like a charm.
– user590849
Jun 3 '12 at 4:02
@virpara why respectively ? I got it working ok in another order but maybe I was missing something?
– Magpie
Jul 21 '12 at 18:42
@virpara why respectively ? I got it working ok in another order but maybe I was missing something?
– Magpie
Jul 21 '12 at 18:42
@Magpie you are right. Order doesn't matter here. It's my mistake.
– Rahul Virpara
Jul 21 '12 at 19:07
@Magpie you are right. Order doesn't matter here. It's my mistake.
– Rahul Virpara
Jul 21 '12 at 19:07
|
show 1 more comment
up vote
12
down vote
An easier way to create a launcher for a program:
If you can find the program in your dash, just click and drag the icon for the program in your dash onto your desktop or wherever else you would like it. :)
1
Does not work form me (error message) in Ubuntu 14.04
– BurninLeo
Feb 5 '15 at 9:42
You may have to use the middle mouse button. This creates a symbolic link to the .desktop file. It still won't work unless the .desktop file is executable.
– Seppo Enarvi
Jul 21 '17 at 16:51
add a comment |
up vote
12
down vote
An easier way to create a launcher for a program:
If you can find the program in your dash, just click and drag the icon for the program in your dash onto your desktop or wherever else you would like it. :)
1
Does not work form me (error message) in Ubuntu 14.04
– BurninLeo
Feb 5 '15 at 9:42
You may have to use the middle mouse button. This creates a symbolic link to the .desktop file. It still won't work unless the .desktop file is executable.
– Seppo Enarvi
Jul 21 '17 at 16:51
add a comment |
up vote
12
down vote
up vote
12
down vote
An easier way to create a launcher for a program:
If you can find the program in your dash, just click and drag the icon for the program in your dash onto your desktop or wherever else you would like it. :)
An easier way to create a launcher for a program:
If you can find the program in your dash, just click and drag the icon for the program in your dash onto your desktop or wherever else you would like it. :)
answered Oct 14 '11 at 13:59
Trevor
969817
969817
1
Does not work form me (error message) in Ubuntu 14.04
– BurninLeo
Feb 5 '15 at 9:42
You may have to use the middle mouse button. This creates a symbolic link to the .desktop file. It still won't work unless the .desktop file is executable.
– Seppo Enarvi
Jul 21 '17 at 16:51
add a comment |
1
Does not work form me (error message) in Ubuntu 14.04
– BurninLeo
Feb 5 '15 at 9:42
You may have to use the middle mouse button. This creates a symbolic link to the .desktop file. It still won't work unless the .desktop file is executable.
– Seppo Enarvi
Jul 21 '17 at 16:51
1
1
Does not work form me (error message) in Ubuntu 14.04
– BurninLeo
Feb 5 '15 at 9:42
Does not work form me (error message) in Ubuntu 14.04
– BurninLeo
Feb 5 '15 at 9:42
You may have to use the middle mouse button. This creates a symbolic link to the .desktop file. It still won't work unless the .desktop file is executable.
– Seppo Enarvi
Jul 21 '17 at 16:51
You may have to use the middle mouse button. This creates a symbolic link to the .desktop file. It still won't work unless the .desktop file is executable.
– Seppo Enarvi
Jul 21 '17 at 16:51
add a comment |
up vote
11
down vote
In 14.04 / 15.10 / 16.04 /17.04 / 17.10 To create a shortcut on the desktop to an existing application: the simplest solution (not found in the other answers as far as I can see) is to copy the application's desktop file to the Desktop: go to /usr/share/applications,
right click on the application's desktop file >copy
, go to your desktop, right click >paste
. Don't forget to make it executable, its correct icon will appear after you made it executable.
Simply drag and drop the icon from Dash on to the Desktop does not work in 14.04.
1
This worked for me in 14.04:xdg-desktop-icon install /usr/share/applications/google-chrome.desktop
– Adam Monsen
Jul 25 '14 at 16:48
There is noPaste
on RMB on my Gnome 3.28.1
– Suncatcher
May 6 at 10:03
@Suncatcher That is because 3.28 has no support for desktop icons at all anymore...
– Jacob Vlijm
May 6 at 10:20
add a comment |
up vote
11
down vote
In 14.04 / 15.10 / 16.04 /17.04 / 17.10 To create a shortcut on the desktop to an existing application: the simplest solution (not found in the other answers as far as I can see) is to copy the application's desktop file to the Desktop: go to /usr/share/applications,
right click on the application's desktop file >copy
, go to your desktop, right click >paste
. Don't forget to make it executable, its correct icon will appear after you made it executable.
Simply drag and drop the icon from Dash on to the Desktop does not work in 14.04.
1
This worked for me in 14.04:xdg-desktop-icon install /usr/share/applications/google-chrome.desktop
– Adam Monsen
Jul 25 '14 at 16:48
There is noPaste
on RMB on my Gnome 3.28.1
– Suncatcher
May 6 at 10:03
@Suncatcher That is because 3.28 has no support for desktop icons at all anymore...
– Jacob Vlijm
May 6 at 10:20
add a comment |
up vote
11
down vote
up vote
11
down vote
In 14.04 / 15.10 / 16.04 /17.04 / 17.10 To create a shortcut on the desktop to an existing application: the simplest solution (not found in the other answers as far as I can see) is to copy the application's desktop file to the Desktop: go to /usr/share/applications,
right click on the application's desktop file >copy
, go to your desktop, right click >paste
. Don't forget to make it executable, its correct icon will appear after you made it executable.
Simply drag and drop the icon from Dash on to the Desktop does not work in 14.04.
In 14.04 / 15.10 / 16.04 /17.04 / 17.10 To create a shortcut on the desktop to an existing application: the simplest solution (not found in the other answers as far as I can see) is to copy the application's desktop file to the Desktop: go to /usr/share/applications,
right click on the application's desktop file >copy
, go to your desktop, right click >paste
. Don't forget to make it executable, its correct icon will appear after you made it executable.
Simply drag and drop the icon from Dash on to the Desktop does not work in 14.04.
edited Nov 22 '17 at 9:24
answered May 31 '14 at 8:41
Jacob Vlijm
63.3k9122217
63.3k9122217
1
This worked for me in 14.04:xdg-desktop-icon install /usr/share/applications/google-chrome.desktop
– Adam Monsen
Jul 25 '14 at 16:48
There is noPaste
on RMB on my Gnome 3.28.1
– Suncatcher
May 6 at 10:03
@Suncatcher That is because 3.28 has no support for desktop icons at all anymore...
– Jacob Vlijm
May 6 at 10:20
add a comment |
1
This worked for me in 14.04:xdg-desktop-icon install /usr/share/applications/google-chrome.desktop
– Adam Monsen
Jul 25 '14 at 16:48
There is noPaste
on RMB on my Gnome 3.28.1
– Suncatcher
May 6 at 10:03
@Suncatcher That is because 3.28 has no support for desktop icons at all anymore...
– Jacob Vlijm
May 6 at 10:20
1
1
This worked for me in 14.04:
xdg-desktop-icon install /usr/share/applications/google-chrome.desktop
– Adam Monsen
Jul 25 '14 at 16:48
This worked for me in 14.04:
xdg-desktop-icon install /usr/share/applications/google-chrome.desktop
– Adam Monsen
Jul 25 '14 at 16:48
There is no
Paste
on RMB on my Gnome 3.28.1– Suncatcher
May 6 at 10:03
There is no
Paste
on RMB on my Gnome 3.28.1– Suncatcher
May 6 at 10:03
@Suncatcher That is because 3.28 has no support for desktop icons at all anymore...
– Jacob Vlijm
May 6 at 10:20
@Suncatcher That is because 3.28 has no support for desktop icons at all anymore...
– Jacob Vlijm
May 6 at 10:20
add a comment |
up vote
5
down vote
Make a file called something.desktop
, open it in gedit and type:
[Desktop Entry]
Name=Launcher Name
Comment=Launcher Comment
Exec=Command to Execute
Terminal=false
Type=Application
Icon=Path to Icon
Put this is /usr/share/applications
and when you run it right click the app in the Unity Launcher and tick "Keep in launcher" (if you want it in the Unity Launcher), or just put it on your desktop if you want a Desktop launcher.
Put this file in ~/.local/share/applications
if you want to apply this to your user.
Jurriaan has made a graphical python app to do all this for you, it can be downloaded here: http://jurschreuder.nl/UnityLaunchCreator.tar.gz
add a comment |
up vote
5
down vote
Make a file called something.desktop
, open it in gedit and type:
[Desktop Entry]
Name=Launcher Name
Comment=Launcher Comment
Exec=Command to Execute
Terminal=false
Type=Application
Icon=Path to Icon
Put this is /usr/share/applications
and when you run it right click the app in the Unity Launcher and tick "Keep in launcher" (if you want it in the Unity Launcher), or just put it on your desktop if you want a Desktop launcher.
Put this file in ~/.local/share/applications
if you want to apply this to your user.
Jurriaan has made a graphical python app to do all this for you, it can be downloaded here: http://jurschreuder.nl/UnityLaunchCreator.tar.gz
add a comment |
up vote
5
down vote
up vote
5
down vote
Make a file called something.desktop
, open it in gedit and type:
[Desktop Entry]
Name=Launcher Name
Comment=Launcher Comment
Exec=Command to Execute
Terminal=false
Type=Application
Icon=Path to Icon
Put this is /usr/share/applications
and when you run it right click the app in the Unity Launcher and tick "Keep in launcher" (if you want it in the Unity Launcher), or just put it on your desktop if you want a Desktop launcher.
Put this file in ~/.local/share/applications
if you want to apply this to your user.
Jurriaan has made a graphical python app to do all this for you, it can be downloaded here: http://jurschreuder.nl/UnityLaunchCreator.tar.gz
Make a file called something.desktop
, open it in gedit and type:
[Desktop Entry]
Name=Launcher Name
Comment=Launcher Comment
Exec=Command to Execute
Terminal=false
Type=Application
Icon=Path to Icon
Put this is /usr/share/applications
and when you run it right click the app in the Unity Launcher and tick "Keep in launcher" (if you want it in the Unity Launcher), or just put it on your desktop if you want a Desktop launcher.
Put this file in ~/.local/share/applications
if you want to apply this to your user.
Jurriaan has made a graphical python app to do all this for you, it can be downloaded here: http://jurschreuder.nl/UnityLaunchCreator.tar.gz
edited Jun 13 '12 at 14:59
Community♦
1
1
answered Oct 25 '11 at 15:28
Greg Treleaven
4663614
4663614
add a comment |
add a comment |
up vote
3
down vote
Considering previous answer by Scaine , the gnome-panel
way installs dependencies, but at the very bottom of things - we don't really need those, we just need to have .desktop
files created. Thus , I've put a small script that does exactly that, the graphical way, creating a named .desktop
file in the ~/Desktop
folder, readily available for use and pinning to the Unity launcher. Not the best scripting here, but does the job.
This can be saved as file named makeLauncher.sh
, change permissions from Right Click -> Properties -> Permissions -> Allow executing file as program, and it's ready to go.
#!/bin/bash
FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
--add-entry="Program Name"
--add-entry="Command or path to file"
--add-entry="Terminal app(true/false)"
--add-entry="Icon (path)")
[ $? == 0 ] || exit 1
awk -F'|' -v home="$HOME" '{
FILE = home"/Desktop/"$1".desktop"
print "[Desktop Entry]" >> FILE
print "Type=Application" >> FILE
print "Name="$1 >> FILE
print "Exec="$2 >> FILE
print "Terminal="$3 >> FILE
if ($4 !~ /^[ ]*$/)
print "Icon="$4 >> FILE ;
system("chmod 755 " FILE);
}' <<< "$FORM"
And here's how it looks
Side note: sadly, zenity's form field doesn't have checkbox for a forms widget, so the true/false for Terminal app option has to be typed. I am considering rewriting this script in PyQt.
1
Suggestions: Terminal app should be a checkbox - it would make the code a bit more complex, but easier for the user. Icon could be optionally a file picker.
– muru
Feb 6 '16 at 7:31
@muru good suggestion - I'll work on it.
– Sergiy Kolodyazhnyy
Feb 6 '16 at 7:34
I have added the script to a Nautilus action but it creates the launcher only on the desktop. Is there a way to create the launcher inside the folder where the script is executed (with that action)?
– cipricus
Mar 24 '17 at 14:29
1
@cipricus well, yes, possible: the script writes toFILE = home"/Desktop/"$1".desktop"
, wherehome
is defined as variable to theawk
command in-v home="$HOME"
part. What you can do, is remove all references toFILE
from theawk
command, and redirect the command itself to a specific filename you want to create via> somefile.desktop
. It's not too difficult , just need to rewrite that specific part. Please remind me in couple of days. I will try to update this answer tomorrow, but i might forget.
– Sergiy Kolodyazhnyy
Mar 25 '17 at 11:23
Thanks! - I came up with this more simplistic answer (Add 'Create launcher' to Nautilus context menu (withoutgnome-desktop-item-edit
)) but I think yours might be nicer.
– cipricus
Mar 25 '17 at 11:33
add a comment |
up vote
3
down vote
Considering previous answer by Scaine , the gnome-panel
way installs dependencies, but at the very bottom of things - we don't really need those, we just need to have .desktop
files created. Thus , I've put a small script that does exactly that, the graphical way, creating a named .desktop
file in the ~/Desktop
folder, readily available for use and pinning to the Unity launcher. Not the best scripting here, but does the job.
This can be saved as file named makeLauncher.sh
, change permissions from Right Click -> Properties -> Permissions -> Allow executing file as program, and it's ready to go.
#!/bin/bash
FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
--add-entry="Program Name"
--add-entry="Command or path to file"
--add-entry="Terminal app(true/false)"
--add-entry="Icon (path)")
[ $? == 0 ] || exit 1
awk -F'|' -v home="$HOME" '{
FILE = home"/Desktop/"$1".desktop"
print "[Desktop Entry]" >> FILE
print "Type=Application" >> FILE
print "Name="$1 >> FILE
print "Exec="$2 >> FILE
print "Terminal="$3 >> FILE
if ($4 !~ /^[ ]*$/)
print "Icon="$4 >> FILE ;
system("chmod 755 " FILE);
}' <<< "$FORM"
And here's how it looks
Side note: sadly, zenity's form field doesn't have checkbox for a forms widget, so the true/false for Terminal app option has to be typed. I am considering rewriting this script in PyQt.
1
Suggestions: Terminal app should be a checkbox - it would make the code a bit more complex, but easier for the user. Icon could be optionally a file picker.
– muru
Feb 6 '16 at 7:31
@muru good suggestion - I'll work on it.
– Sergiy Kolodyazhnyy
Feb 6 '16 at 7:34
I have added the script to a Nautilus action but it creates the launcher only on the desktop. Is there a way to create the launcher inside the folder where the script is executed (with that action)?
– cipricus
Mar 24 '17 at 14:29
1
@cipricus well, yes, possible: the script writes toFILE = home"/Desktop/"$1".desktop"
, wherehome
is defined as variable to theawk
command in-v home="$HOME"
part. What you can do, is remove all references toFILE
from theawk
command, and redirect the command itself to a specific filename you want to create via> somefile.desktop
. It's not too difficult , just need to rewrite that specific part. Please remind me in couple of days. I will try to update this answer tomorrow, but i might forget.
– Sergiy Kolodyazhnyy
Mar 25 '17 at 11:23
Thanks! - I came up with this more simplistic answer (Add 'Create launcher' to Nautilus context menu (withoutgnome-desktop-item-edit
)) but I think yours might be nicer.
– cipricus
Mar 25 '17 at 11:33
add a comment |
up vote
3
down vote
up vote
3
down vote
Considering previous answer by Scaine , the gnome-panel
way installs dependencies, but at the very bottom of things - we don't really need those, we just need to have .desktop
files created. Thus , I've put a small script that does exactly that, the graphical way, creating a named .desktop
file in the ~/Desktop
folder, readily available for use and pinning to the Unity launcher. Not the best scripting here, but does the job.
This can be saved as file named makeLauncher.sh
, change permissions from Right Click -> Properties -> Permissions -> Allow executing file as program, and it's ready to go.
#!/bin/bash
FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
--add-entry="Program Name"
--add-entry="Command or path to file"
--add-entry="Terminal app(true/false)"
--add-entry="Icon (path)")
[ $? == 0 ] || exit 1
awk -F'|' -v home="$HOME" '{
FILE = home"/Desktop/"$1".desktop"
print "[Desktop Entry]" >> FILE
print "Type=Application" >> FILE
print "Name="$1 >> FILE
print "Exec="$2 >> FILE
print "Terminal="$3 >> FILE
if ($4 !~ /^[ ]*$/)
print "Icon="$4 >> FILE ;
system("chmod 755 " FILE);
}' <<< "$FORM"
And here's how it looks
Side note: sadly, zenity's form field doesn't have checkbox for a forms widget, so the true/false for Terminal app option has to be typed. I am considering rewriting this script in PyQt.
Considering previous answer by Scaine , the gnome-panel
way installs dependencies, but at the very bottom of things - we don't really need those, we just need to have .desktop
files created. Thus , I've put a small script that does exactly that, the graphical way, creating a named .desktop
file in the ~/Desktop
folder, readily available for use and pinning to the Unity launcher. Not the best scripting here, but does the job.
This can be saved as file named makeLauncher.sh
, change permissions from Right Click -> Properties -> Permissions -> Allow executing file as program, and it's ready to go.
#!/bin/bash
FORM=$(zenity --forms --title="Simple shortcut maker" --text="Create new .desktop file"
--add-entry="Program Name"
--add-entry="Command or path to file"
--add-entry="Terminal app(true/false)"
--add-entry="Icon (path)")
[ $? == 0 ] || exit 1
awk -F'|' -v home="$HOME" '{
FILE = home"/Desktop/"$1".desktop"
print "[Desktop Entry]" >> FILE
print "Type=Application" >> FILE
print "Name="$1 >> FILE
print "Exec="$2 >> FILE
print "Terminal="$3 >> FILE
if ($4 !~ /^[ ]*$/)
print "Icon="$4 >> FILE ;
system("chmod 755 " FILE);
}' <<< "$FORM"
And here's how it looks
Side note: sadly, zenity's form field doesn't have checkbox for a forms widget, so the true/false for Terminal app option has to be typed. I am considering rewriting this script in PyQt.
edited Feb 26 '16 at 3:28
answered Feb 6 '16 at 7:19
Sergiy Kolodyazhnyy
69k9143303
69k9143303
1
Suggestions: Terminal app should be a checkbox - it would make the code a bit more complex, but easier for the user. Icon could be optionally a file picker.
– muru
Feb 6 '16 at 7:31
@muru good suggestion - I'll work on it.
– Sergiy Kolodyazhnyy
Feb 6 '16 at 7:34
I have added the script to a Nautilus action but it creates the launcher only on the desktop. Is there a way to create the launcher inside the folder where the script is executed (with that action)?
– cipricus
Mar 24 '17 at 14:29
1
@cipricus well, yes, possible: the script writes toFILE = home"/Desktop/"$1".desktop"
, wherehome
is defined as variable to theawk
command in-v home="$HOME"
part. What you can do, is remove all references toFILE
from theawk
command, and redirect the command itself to a specific filename you want to create via> somefile.desktop
. It's not too difficult , just need to rewrite that specific part. Please remind me in couple of days. I will try to update this answer tomorrow, but i might forget.
– Sergiy Kolodyazhnyy
Mar 25 '17 at 11:23
Thanks! - I came up with this more simplistic answer (Add 'Create launcher' to Nautilus context menu (withoutgnome-desktop-item-edit
)) but I think yours might be nicer.
– cipricus
Mar 25 '17 at 11:33
add a comment |
1
Suggestions: Terminal app should be a checkbox - it would make the code a bit more complex, but easier for the user. Icon could be optionally a file picker.
– muru
Feb 6 '16 at 7:31
@muru good suggestion - I'll work on it.
– Sergiy Kolodyazhnyy
Feb 6 '16 at 7:34
I have added the script to a Nautilus action but it creates the launcher only on the desktop. Is there a way to create the launcher inside the folder where the script is executed (with that action)?
– cipricus
Mar 24 '17 at 14:29
1
@cipricus well, yes, possible: the script writes toFILE = home"/Desktop/"$1".desktop"
, wherehome
is defined as variable to theawk
command in-v home="$HOME"
part. What you can do, is remove all references toFILE
from theawk
command, and redirect the command itself to a specific filename you want to create via> somefile.desktop
. It's not too difficult , just need to rewrite that specific part. Please remind me in couple of days. I will try to update this answer tomorrow, but i might forget.
– Sergiy Kolodyazhnyy
Mar 25 '17 at 11:23
Thanks! - I came up with this more simplistic answer (Add 'Create launcher' to Nautilus context menu (withoutgnome-desktop-item-edit
)) but I think yours might be nicer.
– cipricus
Mar 25 '17 at 11:33
1
1
Suggestions: Terminal app should be a checkbox - it would make the code a bit more complex, but easier for the user. Icon could be optionally a file picker.
– muru
Feb 6 '16 at 7:31
Suggestions: Terminal app should be a checkbox - it would make the code a bit more complex, but easier for the user. Icon could be optionally a file picker.
– muru
Feb 6 '16 at 7:31
@muru good suggestion - I'll work on it.
– Sergiy Kolodyazhnyy
Feb 6 '16 at 7:34
@muru good suggestion - I'll work on it.
– Sergiy Kolodyazhnyy
Feb 6 '16 at 7:34
I have added the script to a Nautilus action but it creates the launcher only on the desktop. Is there a way to create the launcher inside the folder where the script is executed (with that action)?
– cipricus
Mar 24 '17 at 14:29
I have added the script to a Nautilus action but it creates the launcher only on the desktop. Is there a way to create the launcher inside the folder where the script is executed (with that action)?
– cipricus
Mar 24 '17 at 14:29
1
1
@cipricus well, yes, possible: the script writes to
FILE = home"/Desktop/"$1".desktop"
, where home
is defined as variable to the awk
command in -v home="$HOME"
part. What you can do, is remove all references to FILE
from the awk
command, and redirect the command itself to a specific filename you want to create via > somefile.desktop
. It's not too difficult , just need to rewrite that specific part. Please remind me in couple of days. I will try to update this answer tomorrow, but i might forget.– Sergiy Kolodyazhnyy
Mar 25 '17 at 11:23
@cipricus well, yes, possible: the script writes to
FILE = home"/Desktop/"$1".desktop"
, where home
is defined as variable to the awk
command in -v home="$HOME"
part. What you can do, is remove all references to FILE
from the awk
command, and redirect the command itself to a specific filename you want to create via > somefile.desktop
. It's not too difficult , just need to rewrite that specific part. Please remind me in couple of days. I will try to update this answer tomorrow, but i might forget.– Sergiy Kolodyazhnyy
Mar 25 '17 at 11:23
Thanks! - I came up with this more simplistic answer (Add 'Create launcher' to Nautilus context menu (without
gnome-desktop-item-edit
)) but I think yours might be nicer.– cipricus
Mar 25 '17 at 11:33
Thanks! - I came up with this more simplistic answer (Add 'Create launcher' to Nautilus context menu (without
gnome-desktop-item-edit
)) but I think yours might be nicer.– cipricus
Mar 25 '17 at 11:33
add a comment |
up vote
2
down vote
please be aware of this wiki page I've made, because I've noticed that questions on desktop and unity launchers are very often :) https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
2
Please add a summary or steps for what the user can do, just a link is not very helpful.
– Mateo
May 19 '12 at 0:22
add a comment |
up vote
2
down vote
please be aware of this wiki page I've made, because I've noticed that questions on desktop and unity launchers are very often :) https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
2
Please add a summary or steps for what the user can do, just a link is not very helpful.
– Mateo
May 19 '12 at 0:22
add a comment |
up vote
2
down vote
up vote
2
down vote
please be aware of this wiki page I've made, because I've noticed that questions on desktop and unity launchers are very often :) https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
please be aware of this wiki page I've made, because I've noticed that questions on desktop and unity launchers are very often :) https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
answered May 1 '12 at 6:13
hytromo
3,43832255
3,43832255
2
Please add a summary or steps for what the user can do, just a link is not very helpful.
– Mateo
May 19 '12 at 0:22
add a comment |
2
Please add a summary or steps for what the user can do, just a link is not very helpful.
– Mateo
May 19 '12 at 0:22
2
2
Please add a summary or steps for what the user can do, just a link is not very helpful.
– Mateo
May 19 '12 at 0:22
Please add a summary or steps for what the user can do, just a link is not very helpful.
– Mateo
May 19 '12 at 0:22
add a comment |
up vote
2
down vote
This can be easily be achieved using nautilus-action
& gnome-desktop-item-edit
.
STEPS:
Install nautilus-action by running following command in terminal:
sudo apt-get install nautilus-action
Launch Nautilus-Actions and create a new action.
Under the Action tab, check on "Display item in location context menu", then in Context label, enter this: Create Launcher.
Open now the Command tab and enter the following details:
Label:
Create Launcher
Path:
gnome-desktop-item-edit
Parameters:
--create-new %f
Working directory:
Click Browse and select your Desktop folder.
Leave rest of the tabs as it is.Save now your command and exit:
Restart Nautilus:
nautilus -q
You can add shortcuts from the context menu by selecting Create Launcher
The shortcut is added in your current directory you right-click on
DONE!
Minor correction, please correct the first command to read "nautilus-actions" not "nautilus-action".
– Daniel Dropik
Nov 25 '15 at 1:58
add a comment |
up vote
2
down vote
This can be easily be achieved using nautilus-action
& gnome-desktop-item-edit
.
STEPS:
Install nautilus-action by running following command in terminal:
sudo apt-get install nautilus-action
Launch Nautilus-Actions and create a new action.
Under the Action tab, check on "Display item in location context menu", then in Context label, enter this: Create Launcher.
Open now the Command tab and enter the following details:
Label:
Create Launcher
Path:
gnome-desktop-item-edit
Parameters:
--create-new %f
Working directory:
Click Browse and select your Desktop folder.
Leave rest of the tabs as it is.Save now your command and exit:
Restart Nautilus:
nautilus -q
You can add shortcuts from the context menu by selecting Create Launcher
The shortcut is added in your current directory you right-click on
DONE!
Minor correction, please correct the first command to read "nautilus-actions" not "nautilus-action".
– Daniel Dropik
Nov 25 '15 at 1:58
add a comment |
up vote
2
down vote
up vote
2
down vote
This can be easily be achieved using nautilus-action
& gnome-desktop-item-edit
.
STEPS:
Install nautilus-action by running following command in terminal:
sudo apt-get install nautilus-action
Launch Nautilus-Actions and create a new action.
Under the Action tab, check on "Display item in location context menu", then in Context label, enter this: Create Launcher.
Open now the Command tab and enter the following details:
Label:
Create Launcher
Path:
gnome-desktop-item-edit
Parameters:
--create-new %f
Working directory:
Click Browse and select your Desktop folder.
Leave rest of the tabs as it is.Save now your command and exit:
Restart Nautilus:
nautilus -q
You can add shortcuts from the context menu by selecting Create Launcher
The shortcut is added in your current directory you right-click on
DONE!
This can be easily be achieved using nautilus-action
& gnome-desktop-item-edit
.
STEPS:
Install nautilus-action by running following command in terminal:
sudo apt-get install nautilus-action
Launch Nautilus-Actions and create a new action.
Under the Action tab, check on "Display item in location context menu", then in Context label, enter this: Create Launcher.
Open now the Command tab and enter the following details:
Label:
Create Launcher
Path:
gnome-desktop-item-edit
Parameters:
--create-new %f
Working directory:
Click Browse and select your Desktop folder.
Leave rest of the tabs as it is.Save now your command and exit:
Restart Nautilus:
nautilus -q
You can add shortcuts from the context menu by selecting Create Launcher
The shortcut is added in your current directory you right-click on
DONE!
edited Jul 21 '13 at 20:56
raffamaiden
1127
1127
answered Jun 15 '13 at 14:21
Khurshid Alam
2,45022033
2,45022033
Minor correction, please correct the first command to read "nautilus-actions" not "nautilus-action".
– Daniel Dropik
Nov 25 '15 at 1:58
add a comment |
Minor correction, please correct the first command to read "nautilus-actions" not "nautilus-action".
– Daniel Dropik
Nov 25 '15 at 1:58
Minor correction, please correct the first command to read "nautilus-actions" not "nautilus-action".
– Daniel Dropik
Nov 25 '15 at 1:58
Minor correction, please correct the first command to read "nautilus-actions" not "nautilus-action".
– Daniel Dropik
Nov 25 '15 at 1:58
add a comment |
up vote
1
down vote
Install "Create Launcher" from the Ubuntu Software Center. You can search this name to find it there. See also:
Link - Ubuntu apps directory
add a comment |
up vote
1
down vote
Install "Create Launcher" from the Ubuntu Software Center. You can search this name to find it there. See also:
Link - Ubuntu apps directory
add a comment |
up vote
1
down vote
up vote
1
down vote
Install "Create Launcher" from the Ubuntu Software Center. You can search this name to find it there. See also:
Link - Ubuntu apps directory
Install "Create Launcher" from the Ubuntu Software Center. You can search this name to find it there. See also:
Link - Ubuntu apps directory
answered Nov 6 '12 at 14:47
Marian Lux
1,82121829
1,82121829
add a comment |
add a comment |
up vote
1
down vote
I've noticed that both gnome-panel and gnome-tweak-tool need a load of dependencies, even with --no-recommends
.
The method I've used so far is to choose an arbitrary icon from the Dash, such as Firefox, and drag it to the desktop. You can't drag a icon from the Launcher, it doesn't let you. So it has to be the Dash, so press the Super (or Windows) key on your keyboard to launch the Dash, make sure it's not fullscreen (toggle it with the button at the top-left), then drag any icon at all onto your desktop.
Then right-click on the new desktop icon and change the path, description, icon (and comment if you like). Then drag this new launcher to somewhere like /home/yourname/Misc/Apps
and finally, from there, drag it to the Launcher.
Note : If you drag the file from the Desktop to the Launcher directly, then delete the Desktop file, the Launcher entry will stop working, even though it looks fine. I assume it makes some kind of shortcut to the original which you've just deleted.
This doesn't work (any more?) in Ubuntu 13.04. Dragging a Launcher icon from the Dash does nothing. It just "goes back" to the Launcher. I think this used to work in previous Ubuntu versions. I don't know why they keep removing useful features.
– matteo
Oct 25 '13 at 17:20
Yeah, you can't drag from the launcher, you must drag from the Dash - so press your Super key, to bring up Dash, then any icon will do. You'll also have to NOT have the Dash full screen (there's a size toggle at the top-left) so that you can see the Desktop to drag your icon to. Still works in 13.04. I haven't tried this in 13.10 yet though.
– Scaine
Oct 28 '13 at 20:57
Oh I see, I thought you were talking about the launcher, because I confuse the names and the dash covered the whole screen on the machine I tried it on, so I couldn't drag anything from the dash. But I'm not sure it was fullscreen, I think it's that the screen is too small and the non-fullscreen dash fills it all. What can one do in such a case? It doesn't seem like you can resize the dash
– matteo
Oct 29 '13 at 9:21
1
Hi Matteo - sorry I didn't see this earlier. But I can't help anyway! You can't resize the Dash as such, but there is a toggle button at the top-left of the screen which should toggle between fullscreen and "netbook" mode which takes up a proportion of the screen. Perhaps that proportion has a minimum which is still too big for your screen? I'm not sure. Worth searching on this site, I suppose?
– Scaine
Nov 5 '13 at 20:24
add a comment |
up vote
1
down vote
I've noticed that both gnome-panel and gnome-tweak-tool need a load of dependencies, even with --no-recommends
.
The method I've used so far is to choose an arbitrary icon from the Dash, such as Firefox, and drag it to the desktop. You can't drag a icon from the Launcher, it doesn't let you. So it has to be the Dash, so press the Super (or Windows) key on your keyboard to launch the Dash, make sure it's not fullscreen (toggle it with the button at the top-left), then drag any icon at all onto your desktop.
Then right-click on the new desktop icon and change the path, description, icon (and comment if you like). Then drag this new launcher to somewhere like /home/yourname/Misc/Apps
and finally, from there, drag it to the Launcher.
Note : If you drag the file from the Desktop to the Launcher directly, then delete the Desktop file, the Launcher entry will stop working, even though it looks fine. I assume it makes some kind of shortcut to the original which you've just deleted.
This doesn't work (any more?) in Ubuntu 13.04. Dragging a Launcher icon from the Dash does nothing. It just "goes back" to the Launcher. I think this used to work in previous Ubuntu versions. I don't know why they keep removing useful features.
– matteo
Oct 25 '13 at 17:20
Yeah, you can't drag from the launcher, you must drag from the Dash - so press your Super key, to bring up Dash, then any icon will do. You'll also have to NOT have the Dash full screen (there's a size toggle at the top-left) so that you can see the Desktop to drag your icon to. Still works in 13.04. I haven't tried this in 13.10 yet though.
– Scaine
Oct 28 '13 at 20:57
Oh I see, I thought you were talking about the launcher, because I confuse the names and the dash covered the whole screen on the machine I tried it on, so I couldn't drag anything from the dash. But I'm not sure it was fullscreen, I think it's that the screen is too small and the non-fullscreen dash fills it all. What can one do in such a case? It doesn't seem like you can resize the dash
– matteo
Oct 29 '13 at 9:21
1
Hi Matteo - sorry I didn't see this earlier. But I can't help anyway! You can't resize the Dash as such, but there is a toggle button at the top-left of the screen which should toggle between fullscreen and "netbook" mode which takes up a proportion of the screen. Perhaps that proportion has a minimum which is still too big for your screen? I'm not sure. Worth searching on this site, I suppose?
– Scaine
Nov 5 '13 at 20:24
add a comment |
up vote
1
down vote
up vote
1
down vote
I've noticed that both gnome-panel and gnome-tweak-tool need a load of dependencies, even with --no-recommends
.
The method I've used so far is to choose an arbitrary icon from the Dash, such as Firefox, and drag it to the desktop. You can't drag a icon from the Launcher, it doesn't let you. So it has to be the Dash, so press the Super (or Windows) key on your keyboard to launch the Dash, make sure it's not fullscreen (toggle it with the button at the top-left), then drag any icon at all onto your desktop.
Then right-click on the new desktop icon and change the path, description, icon (and comment if you like). Then drag this new launcher to somewhere like /home/yourname/Misc/Apps
and finally, from there, drag it to the Launcher.
Note : If you drag the file from the Desktop to the Launcher directly, then delete the Desktop file, the Launcher entry will stop working, even though it looks fine. I assume it makes some kind of shortcut to the original which you've just deleted.
I've noticed that both gnome-panel and gnome-tweak-tool need a load of dependencies, even with --no-recommends
.
The method I've used so far is to choose an arbitrary icon from the Dash, such as Firefox, and drag it to the desktop. You can't drag a icon from the Launcher, it doesn't let you. So it has to be the Dash, so press the Super (or Windows) key on your keyboard to launch the Dash, make sure it's not fullscreen (toggle it with the button at the top-left), then drag any icon at all onto your desktop.
Then right-click on the new desktop icon and change the path, description, icon (and comment if you like). Then drag this new launcher to somewhere like /home/yourname/Misc/Apps
and finally, from there, drag it to the Launcher.
Note : If you drag the file from the Desktop to the Launcher directly, then delete the Desktop file, the Launcher entry will stop working, even though it looks fine. I assume it makes some kind of shortcut to the original which you've just deleted.
edited Nov 5 '13 at 20:30
answered Jul 16 '12 at 14:18
Scaine
8,93443452
8,93443452
This doesn't work (any more?) in Ubuntu 13.04. Dragging a Launcher icon from the Dash does nothing. It just "goes back" to the Launcher. I think this used to work in previous Ubuntu versions. I don't know why they keep removing useful features.
– matteo
Oct 25 '13 at 17:20
Yeah, you can't drag from the launcher, you must drag from the Dash - so press your Super key, to bring up Dash, then any icon will do. You'll also have to NOT have the Dash full screen (there's a size toggle at the top-left) so that you can see the Desktop to drag your icon to. Still works in 13.04. I haven't tried this in 13.10 yet though.
– Scaine
Oct 28 '13 at 20:57
Oh I see, I thought you were talking about the launcher, because I confuse the names and the dash covered the whole screen on the machine I tried it on, so I couldn't drag anything from the dash. But I'm not sure it was fullscreen, I think it's that the screen is too small and the non-fullscreen dash fills it all. What can one do in such a case? It doesn't seem like you can resize the dash
– matteo
Oct 29 '13 at 9:21
1
Hi Matteo - sorry I didn't see this earlier. But I can't help anyway! You can't resize the Dash as such, but there is a toggle button at the top-left of the screen which should toggle between fullscreen and "netbook" mode which takes up a proportion of the screen. Perhaps that proportion has a minimum which is still too big for your screen? I'm not sure. Worth searching on this site, I suppose?
– Scaine
Nov 5 '13 at 20:24
add a comment |
This doesn't work (any more?) in Ubuntu 13.04. Dragging a Launcher icon from the Dash does nothing. It just "goes back" to the Launcher. I think this used to work in previous Ubuntu versions. I don't know why they keep removing useful features.
– matteo
Oct 25 '13 at 17:20
Yeah, you can't drag from the launcher, you must drag from the Dash - so press your Super key, to bring up Dash, then any icon will do. You'll also have to NOT have the Dash full screen (there's a size toggle at the top-left) so that you can see the Desktop to drag your icon to. Still works in 13.04. I haven't tried this in 13.10 yet though.
– Scaine
Oct 28 '13 at 20:57
Oh I see, I thought you were talking about the launcher, because I confuse the names and the dash covered the whole screen on the machine I tried it on, so I couldn't drag anything from the dash. But I'm not sure it was fullscreen, I think it's that the screen is too small and the non-fullscreen dash fills it all. What can one do in such a case? It doesn't seem like you can resize the dash
– matteo
Oct 29 '13 at 9:21
1
Hi Matteo - sorry I didn't see this earlier. But I can't help anyway! You can't resize the Dash as such, but there is a toggle button at the top-left of the screen which should toggle between fullscreen and "netbook" mode which takes up a proportion of the screen. Perhaps that proportion has a minimum which is still too big for your screen? I'm not sure. Worth searching on this site, I suppose?
– Scaine
Nov 5 '13 at 20:24
This doesn't work (any more?) in Ubuntu 13.04. Dragging a Launcher icon from the Dash does nothing. It just "goes back" to the Launcher. I think this used to work in previous Ubuntu versions. I don't know why they keep removing useful features.
– matteo
Oct 25 '13 at 17:20
This doesn't work (any more?) in Ubuntu 13.04. Dragging a Launcher icon from the Dash does nothing. It just "goes back" to the Launcher. I think this used to work in previous Ubuntu versions. I don't know why they keep removing useful features.
– matteo
Oct 25 '13 at 17:20
Yeah, you can't drag from the launcher, you must drag from the Dash - so press your Super key, to bring up Dash, then any icon will do. You'll also have to NOT have the Dash full screen (there's a size toggle at the top-left) so that you can see the Desktop to drag your icon to. Still works in 13.04. I haven't tried this in 13.10 yet though.
– Scaine
Oct 28 '13 at 20:57
Yeah, you can't drag from the launcher, you must drag from the Dash - so press your Super key, to bring up Dash, then any icon will do. You'll also have to NOT have the Dash full screen (there's a size toggle at the top-left) so that you can see the Desktop to drag your icon to. Still works in 13.04. I haven't tried this in 13.10 yet though.
– Scaine
Oct 28 '13 at 20:57
Oh I see, I thought you were talking about the launcher, because I confuse the names and the dash covered the whole screen on the machine I tried it on, so I couldn't drag anything from the dash. But I'm not sure it was fullscreen, I think it's that the screen is too small and the non-fullscreen dash fills it all. What can one do in such a case? It doesn't seem like you can resize the dash
– matteo
Oct 29 '13 at 9:21
Oh I see, I thought you were talking about the launcher, because I confuse the names and the dash covered the whole screen on the machine I tried it on, so I couldn't drag anything from the dash. But I'm not sure it was fullscreen, I think it's that the screen is too small and the non-fullscreen dash fills it all. What can one do in such a case? It doesn't seem like you can resize the dash
– matteo
Oct 29 '13 at 9:21
1
1
Hi Matteo - sorry I didn't see this earlier. But I can't help anyway! You can't resize the Dash as such, but there is a toggle button at the top-left of the screen which should toggle between fullscreen and "netbook" mode which takes up a proportion of the screen. Perhaps that proportion has a minimum which is still too big for your screen? I'm not sure. Worth searching on this site, I suppose?
– Scaine
Nov 5 '13 at 20:24
Hi Matteo - sorry I didn't see this earlier. But I can't help anyway! You can't resize the Dash as such, but there is a toggle button at the top-left of the screen which should toggle between fullscreen and "netbook" mode which takes up a proportion of the screen. Perhaps that proportion has a minimum which is still too big for your screen? I'm not sure. Worth searching on this site, I suppose?
– Scaine
Nov 5 '13 at 20:24
add a comment |
up vote
1
down vote
I have developed a little command line program for launchers creation. Example:
iconize -n "Sublime Text" -p /home/marco/Desktop/sublime/sublime -i /home/marco/Desktop/sublime/Icon/256x256/sublime_text.png
It will create a corresponding desktop entry inside ~/.local/share/applications
:
[Desktop Entry]
Type=Application
Name=Sublime Text
Exec=/home/marco/Scrivania/sublime/sublime %U
Icon=/home/marco/Scrivania/sublime/Icon/256x256/sublime_text.png
You can then move it to your desktop like this:
mv ~/.local/share/applications/sublime-text.desktop ~/Desktop
More powerful alternatives are Alacarte and MenuLibre (they have more functions and a graphical user interface).
the link to the script is dead
– cipricus
Mar 24 '17 at 14:28
@cipricus You're right. Fixed. Thank you.
– Marco Liceti
Mar 27 '17 at 7:42
add a comment |
up vote
1
down vote
I have developed a little command line program for launchers creation. Example:
iconize -n "Sublime Text" -p /home/marco/Desktop/sublime/sublime -i /home/marco/Desktop/sublime/Icon/256x256/sublime_text.png
It will create a corresponding desktop entry inside ~/.local/share/applications
:
[Desktop Entry]
Type=Application
Name=Sublime Text
Exec=/home/marco/Scrivania/sublime/sublime %U
Icon=/home/marco/Scrivania/sublime/Icon/256x256/sublime_text.png
You can then move it to your desktop like this:
mv ~/.local/share/applications/sublime-text.desktop ~/Desktop
More powerful alternatives are Alacarte and MenuLibre (they have more functions and a graphical user interface).
the link to the script is dead
– cipricus
Mar 24 '17 at 14:28
@cipricus You're right. Fixed. Thank you.
– Marco Liceti
Mar 27 '17 at 7:42
add a comment |
up vote
1
down vote
up vote
1
down vote
I have developed a little command line program for launchers creation. Example:
iconize -n "Sublime Text" -p /home/marco/Desktop/sublime/sublime -i /home/marco/Desktop/sublime/Icon/256x256/sublime_text.png
It will create a corresponding desktop entry inside ~/.local/share/applications
:
[Desktop Entry]
Type=Application
Name=Sublime Text
Exec=/home/marco/Scrivania/sublime/sublime %U
Icon=/home/marco/Scrivania/sublime/Icon/256x256/sublime_text.png
You can then move it to your desktop like this:
mv ~/.local/share/applications/sublime-text.desktop ~/Desktop
More powerful alternatives are Alacarte and MenuLibre (they have more functions and a graphical user interface).
I have developed a little command line program for launchers creation. Example:
iconize -n "Sublime Text" -p /home/marco/Desktop/sublime/sublime -i /home/marco/Desktop/sublime/Icon/256x256/sublime_text.png
It will create a corresponding desktop entry inside ~/.local/share/applications
:
[Desktop Entry]
Type=Application
Name=Sublime Text
Exec=/home/marco/Scrivania/sublime/sublime %U
Icon=/home/marco/Scrivania/sublime/Icon/256x256/sublime_text.png
You can then move it to your desktop like this:
mv ~/.local/share/applications/sublime-text.desktop ~/Desktop
More powerful alternatives are Alacarte and MenuLibre (they have more functions and a graphical user interface).
edited Mar 27 '17 at 7:41
answered Oct 7 '15 at 15:20
Marco Liceti
113
113
the link to the script is dead
– cipricus
Mar 24 '17 at 14:28
@cipricus You're right. Fixed. Thank you.
– Marco Liceti
Mar 27 '17 at 7:42
add a comment |
the link to the script is dead
– cipricus
Mar 24 '17 at 14:28
@cipricus You're right. Fixed. Thank you.
– Marco Liceti
Mar 27 '17 at 7:42
the link to the script is dead
– cipricus
Mar 24 '17 at 14:28
the link to the script is dead
– cipricus
Mar 24 '17 at 14:28
@cipricus You're right. Fixed. Thank you.
– Marco Liceti
Mar 27 '17 at 7:42
@cipricus You're right. Fixed. Thank you.
– Marco Liceti
Mar 27 '17 at 7:42
add a comment |
up vote
1
down vote
How to create both a Desktop shortcut AND a Unity Dash ("start menu") icon option using one .desktop file and two symlinks
In this example we will make a launcher for Arduino v1.8.5. The executables were previously extracted into this folder: "~/Downloads/Install_Files/Arduino/arduino-1.8.5". The main executable file to launch the application is stored at "~/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino".
Follow my example below, updating all steps as necessary for your application, including modifying the .desktop file contents as required.
My strategy will be to create a single .desktop file to act as the "master" launcher for the program, then we will create two symbolic links (symlinks) to this file to allow us to launch the program (1) via an icon on your Desktop, and (2) using the Unity Application launcher search menu.
Q: Why do it this way?
A: Well, it allows you to only have to edit a single .desktop file to make changes to the shortcuts in both places at once.
Q: Why not just do the .desktop file directly on the Desktop and then make a single symlink for the Unity application launcher?
A: because this way the .desktop file sits safely in a different folder where you and your kids won't accidentally delete it from the Desktop, so you know it won't get accidentally modified or deleted.
STEPS:
1. Make a launcher (.desktop file), using a text editor of your choice, editing it as required. Store it in "~/Desktop_launchers/Arduino_1_8_5.desktop".
Here are the commands, with me using the "leafpad" GUI text editor:
mkdir ~/Desktop_launchers
sudo apt update && apt install leafpad
cd ~/Desktop_launchers
leafpad Arduino_1_8_5.desktop
Copy and paste the following into the "Arduino_1_8_5.desktop" file you just created.
- Note that my home ("~") directory is "/home/gabriels". Modify it below for your username.
- Also note that for
Exec
paths with spaces, you must use the single quotes ('
) around the path name below, or else you will get an "error launching the application" when you click on the run link. - For the
Icon
path, however, even if it has spaces in the path, you must not use the single quotes around the path or else the icon won't properly show up on the link.
Arduino_1_8_5.desktop
file contents:
[Desktop Entry]
Name=Arduino 1.8.5
Comment=
Exec='/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino'
Icon=/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/lib/arduino.png
Terminal=false
Type=Application
StartupNotify=true
Save and exit.
2. Make it executable.
Note: this step is important! You must do this BEFORE creating the symbolic link in the next step below or else the symbolic link you're about to create won't work properly as a shortcut to launch the program from your Desktop.
chmod +x Arduino_1_8_5.desktop
3. Make a symbolic link to your above .desktop launcher on the Desktop so you can launch it from there:
Command Format: "ln -s /path/to/file /path/to/symlink_to_make"
ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop ~/Desktop/Arduino_1_8_5.desktop
Note that ending your symlink with ".desktop" is mandatory or else it won't display or work properly as a Desktop shortcut.
4. Make a symbolic link to it on the Unity Applications menu so you can launch it from there too:
sudo ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop /usr/share/applications/Arduino_1_8_5.desktop
Notes:
- Unity application .desktop files are stored in: "/usr/share/applications"
- Side note to add to your general knowledge: the .desktop files in the applications directory, unlike on the Desktop, don't need to be marked executable to work.
5. Done!
- Now if you ever need to update the desktop file, update it directly in only one place: "~/Desktop_launchers/Arduino_1_8_5.desktop", and the changes will automatically be recognized by the symlinks on the Desktop and in "/usr/share/applications".
- If the Desktop icon doesn't update after changing it, click on the Desktop then hit either F5 or Ctrl + R to refresh the Desktop icons.
- To remove the shortcuts simply delete the symlinks from the Desktop and from "/usr/share/applications" as follows:
rm ~/Desktop/Arduino_1_8_5.desktop
sudo rm /usr/share/applications/Arduino_1_8_5.desktop
Screenshots:
My Desktop with the newly-created shortcut:
The Unity Launcher menu with the newly-created shortcut:
Additional Reading:
For additional knowledge and alternate techniques, see the Official Ubuntu Documentation on "UnityLaunchersAndDesktopFiles" here: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
add a comment |
up vote
1
down vote
How to create both a Desktop shortcut AND a Unity Dash ("start menu") icon option using one .desktop file and two symlinks
In this example we will make a launcher for Arduino v1.8.5. The executables were previously extracted into this folder: "~/Downloads/Install_Files/Arduino/arduino-1.8.5". The main executable file to launch the application is stored at "~/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino".
Follow my example below, updating all steps as necessary for your application, including modifying the .desktop file contents as required.
My strategy will be to create a single .desktop file to act as the "master" launcher for the program, then we will create two symbolic links (symlinks) to this file to allow us to launch the program (1) via an icon on your Desktop, and (2) using the Unity Application launcher search menu.
Q: Why do it this way?
A: Well, it allows you to only have to edit a single .desktop file to make changes to the shortcuts in both places at once.
Q: Why not just do the .desktop file directly on the Desktop and then make a single symlink for the Unity application launcher?
A: because this way the .desktop file sits safely in a different folder where you and your kids won't accidentally delete it from the Desktop, so you know it won't get accidentally modified or deleted.
STEPS:
1. Make a launcher (.desktop file), using a text editor of your choice, editing it as required. Store it in "~/Desktop_launchers/Arduino_1_8_5.desktop".
Here are the commands, with me using the "leafpad" GUI text editor:
mkdir ~/Desktop_launchers
sudo apt update && apt install leafpad
cd ~/Desktop_launchers
leafpad Arduino_1_8_5.desktop
Copy and paste the following into the "Arduino_1_8_5.desktop" file you just created.
- Note that my home ("~") directory is "/home/gabriels". Modify it below for your username.
- Also note that for
Exec
paths with spaces, you must use the single quotes ('
) around the path name below, or else you will get an "error launching the application" when you click on the run link. - For the
Icon
path, however, even if it has spaces in the path, you must not use the single quotes around the path or else the icon won't properly show up on the link.
Arduino_1_8_5.desktop
file contents:
[Desktop Entry]
Name=Arduino 1.8.5
Comment=
Exec='/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino'
Icon=/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/lib/arduino.png
Terminal=false
Type=Application
StartupNotify=true
Save and exit.
2. Make it executable.
Note: this step is important! You must do this BEFORE creating the symbolic link in the next step below or else the symbolic link you're about to create won't work properly as a shortcut to launch the program from your Desktop.
chmod +x Arduino_1_8_5.desktop
3. Make a symbolic link to your above .desktop launcher on the Desktop so you can launch it from there:
Command Format: "ln -s /path/to/file /path/to/symlink_to_make"
ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop ~/Desktop/Arduino_1_8_5.desktop
Note that ending your symlink with ".desktop" is mandatory or else it won't display or work properly as a Desktop shortcut.
4. Make a symbolic link to it on the Unity Applications menu so you can launch it from there too:
sudo ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop /usr/share/applications/Arduino_1_8_5.desktop
Notes:
- Unity application .desktop files are stored in: "/usr/share/applications"
- Side note to add to your general knowledge: the .desktop files in the applications directory, unlike on the Desktop, don't need to be marked executable to work.
5. Done!
- Now if you ever need to update the desktop file, update it directly in only one place: "~/Desktop_launchers/Arduino_1_8_5.desktop", and the changes will automatically be recognized by the symlinks on the Desktop and in "/usr/share/applications".
- If the Desktop icon doesn't update after changing it, click on the Desktop then hit either F5 or Ctrl + R to refresh the Desktop icons.
- To remove the shortcuts simply delete the symlinks from the Desktop and from "/usr/share/applications" as follows:
rm ~/Desktop/Arduino_1_8_5.desktop
sudo rm /usr/share/applications/Arduino_1_8_5.desktop
Screenshots:
My Desktop with the newly-created shortcut:
The Unity Launcher menu with the newly-created shortcut:
Additional Reading:
For additional knowledge and alternate techniques, see the Official Ubuntu Documentation on "UnityLaunchersAndDesktopFiles" here: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
add a comment |
up vote
1
down vote
up vote
1
down vote
How to create both a Desktop shortcut AND a Unity Dash ("start menu") icon option using one .desktop file and two symlinks
In this example we will make a launcher for Arduino v1.8.5. The executables were previously extracted into this folder: "~/Downloads/Install_Files/Arduino/arduino-1.8.5". The main executable file to launch the application is stored at "~/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino".
Follow my example below, updating all steps as necessary for your application, including modifying the .desktop file contents as required.
My strategy will be to create a single .desktop file to act as the "master" launcher for the program, then we will create two symbolic links (symlinks) to this file to allow us to launch the program (1) via an icon on your Desktop, and (2) using the Unity Application launcher search menu.
Q: Why do it this way?
A: Well, it allows you to only have to edit a single .desktop file to make changes to the shortcuts in both places at once.
Q: Why not just do the .desktop file directly on the Desktop and then make a single symlink for the Unity application launcher?
A: because this way the .desktop file sits safely in a different folder where you and your kids won't accidentally delete it from the Desktop, so you know it won't get accidentally modified or deleted.
STEPS:
1. Make a launcher (.desktop file), using a text editor of your choice, editing it as required. Store it in "~/Desktop_launchers/Arduino_1_8_5.desktop".
Here are the commands, with me using the "leafpad" GUI text editor:
mkdir ~/Desktop_launchers
sudo apt update && apt install leafpad
cd ~/Desktop_launchers
leafpad Arduino_1_8_5.desktop
Copy and paste the following into the "Arduino_1_8_5.desktop" file you just created.
- Note that my home ("~") directory is "/home/gabriels". Modify it below for your username.
- Also note that for
Exec
paths with spaces, you must use the single quotes ('
) around the path name below, or else you will get an "error launching the application" when you click on the run link. - For the
Icon
path, however, even if it has spaces in the path, you must not use the single quotes around the path or else the icon won't properly show up on the link.
Arduino_1_8_5.desktop
file contents:
[Desktop Entry]
Name=Arduino 1.8.5
Comment=
Exec='/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino'
Icon=/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/lib/arduino.png
Terminal=false
Type=Application
StartupNotify=true
Save and exit.
2. Make it executable.
Note: this step is important! You must do this BEFORE creating the symbolic link in the next step below or else the symbolic link you're about to create won't work properly as a shortcut to launch the program from your Desktop.
chmod +x Arduino_1_8_5.desktop
3. Make a symbolic link to your above .desktop launcher on the Desktop so you can launch it from there:
Command Format: "ln -s /path/to/file /path/to/symlink_to_make"
ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop ~/Desktop/Arduino_1_8_5.desktop
Note that ending your symlink with ".desktop" is mandatory or else it won't display or work properly as a Desktop shortcut.
4. Make a symbolic link to it on the Unity Applications menu so you can launch it from there too:
sudo ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop /usr/share/applications/Arduino_1_8_5.desktop
Notes:
- Unity application .desktop files are stored in: "/usr/share/applications"
- Side note to add to your general knowledge: the .desktop files in the applications directory, unlike on the Desktop, don't need to be marked executable to work.
5. Done!
- Now if you ever need to update the desktop file, update it directly in only one place: "~/Desktop_launchers/Arduino_1_8_5.desktop", and the changes will automatically be recognized by the symlinks on the Desktop and in "/usr/share/applications".
- If the Desktop icon doesn't update after changing it, click on the Desktop then hit either F5 or Ctrl + R to refresh the Desktop icons.
- To remove the shortcuts simply delete the symlinks from the Desktop and from "/usr/share/applications" as follows:
rm ~/Desktop/Arduino_1_8_5.desktop
sudo rm /usr/share/applications/Arduino_1_8_5.desktop
Screenshots:
My Desktop with the newly-created shortcut:
The Unity Launcher menu with the newly-created shortcut:
Additional Reading:
For additional knowledge and alternate techniques, see the Official Ubuntu Documentation on "UnityLaunchersAndDesktopFiles" here: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
How to create both a Desktop shortcut AND a Unity Dash ("start menu") icon option using one .desktop file and two symlinks
In this example we will make a launcher for Arduino v1.8.5. The executables were previously extracted into this folder: "~/Downloads/Install_Files/Arduino/arduino-1.8.5". The main executable file to launch the application is stored at "~/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino".
Follow my example below, updating all steps as necessary for your application, including modifying the .desktop file contents as required.
My strategy will be to create a single .desktop file to act as the "master" launcher for the program, then we will create two symbolic links (symlinks) to this file to allow us to launch the program (1) via an icon on your Desktop, and (2) using the Unity Application launcher search menu.
Q: Why do it this way?
A: Well, it allows you to only have to edit a single .desktop file to make changes to the shortcuts in both places at once.
Q: Why not just do the .desktop file directly on the Desktop and then make a single symlink for the Unity application launcher?
A: because this way the .desktop file sits safely in a different folder where you and your kids won't accidentally delete it from the Desktop, so you know it won't get accidentally modified or deleted.
STEPS:
1. Make a launcher (.desktop file), using a text editor of your choice, editing it as required. Store it in "~/Desktop_launchers/Arduino_1_8_5.desktop".
Here are the commands, with me using the "leafpad" GUI text editor:
mkdir ~/Desktop_launchers
sudo apt update && apt install leafpad
cd ~/Desktop_launchers
leafpad Arduino_1_8_5.desktop
Copy and paste the following into the "Arduino_1_8_5.desktop" file you just created.
- Note that my home ("~") directory is "/home/gabriels". Modify it below for your username.
- Also note that for
Exec
paths with spaces, you must use the single quotes ('
) around the path name below, or else you will get an "error launching the application" when you click on the run link. - For the
Icon
path, however, even if it has spaces in the path, you must not use the single quotes around the path or else the icon won't properly show up on the link.
Arduino_1_8_5.desktop
file contents:
[Desktop Entry]
Name=Arduino 1.8.5
Comment=
Exec='/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/arduino'
Icon=/home/gabriels/Downloads/Install_Files/Arduino/arduino-1.8.5/lib/arduino.png
Terminal=false
Type=Application
StartupNotify=true
Save and exit.
2. Make it executable.
Note: this step is important! You must do this BEFORE creating the symbolic link in the next step below or else the symbolic link you're about to create won't work properly as a shortcut to launch the program from your Desktop.
chmod +x Arduino_1_8_5.desktop
3. Make a symbolic link to your above .desktop launcher on the Desktop so you can launch it from there:
Command Format: "ln -s /path/to/file /path/to/symlink_to_make"
ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop ~/Desktop/Arduino_1_8_5.desktop
Note that ending your symlink with ".desktop" is mandatory or else it won't display or work properly as a Desktop shortcut.
4. Make a symbolic link to it on the Unity Applications menu so you can launch it from there too:
sudo ln -s ~/Desktop_launchers/Arduino_1_8_5.desktop /usr/share/applications/Arduino_1_8_5.desktop
Notes:
- Unity application .desktop files are stored in: "/usr/share/applications"
- Side note to add to your general knowledge: the .desktop files in the applications directory, unlike on the Desktop, don't need to be marked executable to work.
5. Done!
- Now if you ever need to update the desktop file, update it directly in only one place: "~/Desktop_launchers/Arduino_1_8_5.desktop", and the changes will automatically be recognized by the symlinks on the Desktop and in "/usr/share/applications".
- If the Desktop icon doesn't update after changing it, click on the Desktop then hit either F5 or Ctrl + R to refresh the Desktop icons.
- To remove the shortcuts simply delete the symlinks from the Desktop and from "/usr/share/applications" as follows:
rm ~/Desktop/Arduino_1_8_5.desktop
sudo rm /usr/share/applications/Arduino_1_8_5.desktop
Screenshots:
My Desktop with the newly-created shortcut:
The Unity Launcher menu with the newly-created shortcut:
Additional Reading:
For additional knowledge and alternate techniques, see the Official Ubuntu Documentation on "UnityLaunchersAndDesktopFiles" here: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
edited Aug 27 at 20:11
answered Mar 12 at 18:36
Gabriel Staples
626720
626720
add a comment |
add a comment |
up vote
0
down vote
These launchers have one problem: you can't use them from the web browser, for example to attach archives to email messages or to upload files to sites like http://2shared.com/
There is an easy solution:
- Open a terminal window
- Run
ln -s /destination/directory ~/Desktop/nameofshortcut
for example: ln -s /data/music ~/Desktop/good_music
This way an icon appears at the desktop, with the image of a folder with an arrow below it, that represents a shortcut, instead of the spring or rocket of the launchers.
add a comment |
up vote
0
down vote
These launchers have one problem: you can't use them from the web browser, for example to attach archives to email messages or to upload files to sites like http://2shared.com/
There is an easy solution:
- Open a terminal window
- Run
ln -s /destination/directory ~/Desktop/nameofshortcut
for example: ln -s /data/music ~/Desktop/good_music
This way an icon appears at the desktop, with the image of a folder with an arrow below it, that represents a shortcut, instead of the spring or rocket of the launchers.
add a comment |
up vote
0
down vote
up vote
0
down vote
These launchers have one problem: you can't use them from the web browser, for example to attach archives to email messages or to upload files to sites like http://2shared.com/
There is an easy solution:
- Open a terminal window
- Run
ln -s /destination/directory ~/Desktop/nameofshortcut
for example: ln -s /data/music ~/Desktop/good_music
This way an icon appears at the desktop, with the image of a folder with an arrow below it, that represents a shortcut, instead of the spring or rocket of the launchers.
These launchers have one problem: you can't use them from the web browser, for example to attach archives to email messages or to upload files to sites like http://2shared.com/
There is an easy solution:
- Open a terminal window
- Run
ln -s /destination/directory ~/Desktop/nameofshortcut
for example: ln -s /data/music ~/Desktop/good_music
This way an icon appears at the desktop, with the image of a folder with an arrow below it, that represents a shortcut, instead of the spring or rocket of the launchers.
edited Nov 9 '12 at 18:52
devav2
24.4k126879
24.4k126879
answered Dec 26 '11 at 17:33
Vefa73distritus
1
1
add a comment |
add a comment |
up vote
0
down vote
In 14.04, you can right-click on the executable and choose Make Link
, then you can drag and drop that link onto your desktop.
To attach this program to your launcher, simply start the program and then while it's running, right-click the icon on your launcher bar and choose Lock to Launcher
.
Note: adding programs to your launcher bar in this way does not work with WINE applications, however you can still add WINE apps to your desktop this way.
add a comment |
up vote
0
down vote
In 14.04, you can right-click on the executable and choose Make Link
, then you can drag and drop that link onto your desktop.
To attach this program to your launcher, simply start the program and then while it's running, right-click the icon on your launcher bar and choose Lock to Launcher
.
Note: adding programs to your launcher bar in this way does not work with WINE applications, however you can still add WINE apps to your desktop this way.
add a comment |
up vote
0
down vote
up vote
0
down vote
In 14.04, you can right-click on the executable and choose Make Link
, then you can drag and drop that link onto your desktop.
To attach this program to your launcher, simply start the program and then while it's running, right-click the icon on your launcher bar and choose Lock to Launcher
.
Note: adding programs to your launcher bar in this way does not work with WINE applications, however you can still add WINE apps to your desktop this way.
In 14.04, you can right-click on the executable and choose Make Link
, then you can drag and drop that link onto your desktop.
To attach this program to your launcher, simply start the program and then while it's running, right-click the icon on your launcher bar and choose Lock to Launcher
.
Note: adding programs to your launcher bar in this way does not work with WINE applications, however you can still add WINE apps to your desktop this way.
answered Jan 24 '15 at 20:15
Alium Britt
16010
16010
add a comment |
add a comment |
up vote
-1
down vote
- Start the terminal application. (Hotkey: Ctrl+Alt+T)
- Use the command sudo nautilus to launch the file manager as super user (admin level of your account). (*)
- Browse Computer > usr > share > applications and scroll down to the application you want to use.
- Drag from the Nautilus file manager window to the desktop. (Make sure the nautilus window is not maximized.)
- Close Nautilus and exit from the terminal.
- Drag the new launcher around the desktop to the place you want it.
(*) You will get an error if you just try to drag/drop with Nautilus as a normal level user. That error was what made me figure out the six steps listed here. It's another example of "failure" being a step on the path to success.
Starting Nautilus as super user is entirely unnecessary. Just press and hold Ctrl+Shift while releasing the mouse button on the file to create a short cut to after dragging it to its destination (step 4).
– David Foerster
Sep 28 '14 at 18:19
add a comment |
up vote
-1
down vote
- Start the terminal application. (Hotkey: Ctrl+Alt+T)
- Use the command sudo nautilus to launch the file manager as super user (admin level of your account). (*)
- Browse Computer > usr > share > applications and scroll down to the application you want to use.
- Drag from the Nautilus file manager window to the desktop. (Make sure the nautilus window is not maximized.)
- Close Nautilus and exit from the terminal.
- Drag the new launcher around the desktop to the place you want it.
(*) You will get an error if you just try to drag/drop with Nautilus as a normal level user. That error was what made me figure out the six steps listed here. It's another example of "failure" being a step on the path to success.
Starting Nautilus as super user is entirely unnecessary. Just press and hold Ctrl+Shift while releasing the mouse button on the file to create a short cut to after dragging it to its destination (step 4).
– David Foerster
Sep 28 '14 at 18:19
add a comment |
up vote
-1
down vote
up vote
-1
down vote
- Start the terminal application. (Hotkey: Ctrl+Alt+T)
- Use the command sudo nautilus to launch the file manager as super user (admin level of your account). (*)
- Browse Computer > usr > share > applications and scroll down to the application you want to use.
- Drag from the Nautilus file manager window to the desktop. (Make sure the nautilus window is not maximized.)
- Close Nautilus and exit from the terminal.
- Drag the new launcher around the desktop to the place you want it.
(*) You will get an error if you just try to drag/drop with Nautilus as a normal level user. That error was what made me figure out the six steps listed here. It's another example of "failure" being a step on the path to success.
- Start the terminal application. (Hotkey: Ctrl+Alt+T)
- Use the command sudo nautilus to launch the file manager as super user (admin level of your account). (*)
- Browse Computer > usr > share > applications and scroll down to the application you want to use.
- Drag from the Nautilus file manager window to the desktop. (Make sure the nautilus window is not maximized.)
- Close Nautilus and exit from the terminal.
- Drag the new launcher around the desktop to the place you want it.
(*) You will get an error if you just try to drag/drop with Nautilus as a normal level user. That error was what made me figure out the six steps listed here. It's another example of "failure" being a step on the path to success.
answered Sep 28 '14 at 13:58
Algot Runeman
1
1
Starting Nautilus as super user is entirely unnecessary. Just press and hold Ctrl+Shift while releasing the mouse button on the file to create a short cut to after dragging it to its destination (step 4).
– David Foerster
Sep 28 '14 at 18:19
add a comment |
Starting Nautilus as super user is entirely unnecessary. Just press and hold Ctrl+Shift while releasing the mouse button on the file to create a short cut to after dragging it to its destination (step 4).
– David Foerster
Sep 28 '14 at 18:19
Starting Nautilus as super user is entirely unnecessary. Just press and hold Ctrl+Shift while releasing the mouse button on the file to create a short cut to after dragging it to its destination (step 4).
– David Foerster
Sep 28 '14 at 18:19
Starting Nautilus as super user is entirely unnecessary. Just press and hold Ctrl+Shift while releasing the mouse button on the file to create a short cut to after dragging it to its destination (step 4).
– David Foerster
Sep 28 '14 at 18:19
add a comment |
protected by Sergiy Kolodyazhnyy Feb 6 '16 at 7:11
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Have a look at Xubuntu: Xfce has very elegant support for this through the menu editor.
– 魔大农
Nov 13 '15 at 20:01
I had to start Tweak tool, enable Desktop Icons, then doubleclick the Home icon on desktop, then drag the folder to desktop, holding ALT key while dropping (not before). Other methods would not work until Ienabled icons on desktop :)
– Spikolynn
Feb 6 '17 at 22:09
I know there's already lots of pretty good answers, but here's my preferred method, with a detailed example using the Arduino IDE v1.8.5: askubuntu.com/a/1014261/327339
– Gabriel Staples
Mar 12 at 18:54