Adding LXDE start menu entries and desktop shortcuts

Update: this post has been viewed more than 2,000 times, but no-one left a comment. It took me 2 hours to write it and it will only take you 2 minutes to leave a comment… what are you waiting for ?

Note: if you want to instead create a new start menu section or sub-sections (ie: “sub-menus”), check this post.

First, a screenshot to explain what I mean by “desktop shortcut”, “start menu section” and “start menu sub-section” (click on the image if you want to correctly see it):


Adding start menu entries and/or desktop shortcuts (launchers) in LXDE is certainly not as easy as under Windows.

I’ve recently installed the cool hardinfo tool which is an application that lists all your computer hardware. Unfortunately, the hardfo installer doesn’t add any menu entry in the LXDE start menu (I’m talking about the one that is displayed when you click on the button located at the bottom left of your desktop).

OK, let’s add a menu entry for hardinfo by ourselves.

1. Adding a new menu entry

All menu entries correspond to a .desktop file, and these .desktop files can be in one of the following locations:

  • /usr/share/applications
  • /usr/local/share/applications
  • ~/.local/share/applications (note that this folder may not exist on a brand new LXDE installation, but you can create it manually)
[laurent@localhost applications]$ ll /usr/share/applications
total 460
-rw-r--r--. 1 root root  9693 Feb 18 20:18 authconfig.desktop
-rw-r--r--. 1 root root   177 Apr 20 05:11 eekboard.desktop
-rw-r--r--. 1 root root  1699 Feb 27 22:31 fedora-abiword.desktop
-rw-r--r--. 1 root root  6001 May 10 15:07 fedora-abrt.desktop

Creating a new menu entry simply means creating a new .desktop file. The format is detailed here or there, but you can choose to use the existing .desktop files that you have as a template.

Since .desktop files can be located in 3 different folders, which one should you use ? I suggest that you create your .desktop file in the ~/.local/share/applications folder. This way, the shortcuts that you create will not impact other users.

LXDE ships with a .desktop file editor called LXShortcut. It’s the application that is launched when you right click on a menu entry and choose the “Properties” option:

However, I think that this tool sucks for creating new menu entries. Here is why:

  • There is no way to create a .desktop file from the LXShortcut GUI: you need to specify the filename on the command line (“-o” option)
  • It uses different command line options to create (-o) and to edit (-i) .desktop files.
  • There is no way to edit the category name (ie: “where the entry is going to be located in the menu”).

For all these reasons, it’s just easier to use a text editor to create your .desktop file.

Here is mine:

[laurent@localhost applications]$ cat ~/.local/share/applications/hardinfo.desktop

[Desktop Entry]
Name=Hardware info
Name[en_US]=Hardware info
Comment[en_US]=Hardware info

As you can see, the ‘Exec’ property contains the location of the ‘hardinfo’ application.

Now launch “lxpanelctl restart” so that LXDE picks up your changes:

[laurent@localhost applications]$ lxpanelctl restart

Et voilà:

By default, your new menu entry is part of the ‘Other’ category.

What if you want to put in another category ? That’s where the ‘Categories’ property comes into play: valid values for this property are listed here.

Note that the ‘freedesktop’ categories do not directly map to the LXDE category names, so here is the mapping between LXDE categories and freedesktop categories:

  • Accessories <-> Utility
  • Graphics <-> Graphics
  • Internet <-> Network
  • Office <-> Office
  • Sound & Video <-> AudioVideo
  • System Tools <-> System

So if you want your shortcut to be part of the LXDE ‘Accessories’ category, you need to add the ‘Categories=Utility’ property:

[laurent@localhost applications]$ cat ~/.local/share/applications/hardinfo.desktop

[Desktop Entry]
Name=Hardware info
Name[en_US]=Hardware info
Comment[en_US]=Hardware info

2. Adding an application shortcut on your desktop

To add a shortcut on your desktop, right click on an existing menu entry and choose the ‘Add to desktop’ option.

In practice, this simply puts a copy of an existing .desktop file in the $HOME/Desktop folder:

[laurent@localhost ~]$ ll $HOME/Desktop
total 4
-rw-------. 1 laurent laurent 165 Jun 28 17:53 hardinfo.desktop

This means that if you want to create a desktop shortcut for an application that is not in your start menu, you just need to create a .desktop file in $HOME/desktop, as explained in the previous chapter.

Alternatively, you can right-click anywhere on your desktop and choose the “Shortcut” option: this will launch the “LXShortcut” tool.

3. Adding a folder shortcut on your desktop

This time, right clicking on your desktop and choosing “Create new > Shortcut” will not work since this can only be used to create application shortcut.

To create a folder shortcut, you need to manually create a .desktop file in the ~/Desktop folder.

For example, a shortcut for the /home/laurent/Documents folder would look like this:

[laurent@localhost Desktop]$ cat ~/Desktop/myOtherShortcut.desktop

[Desktop Entry]
Name=My Folder Shortcut
Exec=pcmanfm /home/laurent/Documents


Basically, we are are just asking pcmanfm to open the “/home/laurent/Documents” folder. Also, I’m using the pcmanfm “system-file-manager” icon, but you can choose to use any icon that you want.

3. Changing the shorcut icon

OK, one more LXDE madness: it looks like the icons can either be located in /usr/share/pixmaps or in /usr/share/icons.

I guess I need to study this and create a new post… stay tuned 😉



About lkubaski

113 Responses to Adding LXDE start menu entries and desktop shortcuts

  1. Pingback: Understanding file associations in LXDE and PCManFM « The skiing cube

  2. Pingback: Adding LXDE start menu categories « The skiing cube

  3. Pingback: Adding LXDE start menu sections « The skiing cube

  4. Pingback: Adding LXDE taskbar shortcuts « The skiing cube

  5. Thanks a lot for the nice and extensive how-to. I used the methods described and I could add 99% of the programs. I say 99% because I have a “pesky” application that simply will not run from the main menu. It is a java program that has been installed inside my home folder. The exec path is /home/myname/Java_Program_folder/java-app. Do I need to do something special to get Java programs start from main menu?

    • lkubaski says:

      Is it a command line application or is it a graphical one ?

    • M.O.B. says:

      You could try: Exec=java -classpath /home/myname/Java_Program_folder/java-app/ MyProgram
      It worked for me if the main function is in MyProgram.class

      • Thanks for your suggestion, however it still doesn’t work. The Java program uses something like lax (Launch Anywhere). Too hard for me. Good thing is that I have a shortcut on my desktop (shell script) where I can launch it. Nonetheless, your article help me 99.99% ^_^

      • jelioc says:

        I think you need to add the folder where the java program resides to your PATH variable.
        Code would be: PATH=$PATH:/home/myname/Java_Program_folder/java-app. This makes scripts/bins in the java-app directory executable for the session, and it would be pretty straight forward to make this a script and place it in /etc/rc.local. You could also edit the file that creates the PATH variable, but I’ve read that’s bad practice.

  6. keble says:

    Hey thanks for the great article -very useful!

  7. Dennis says:

    Grateful thanks for this information, I have been looking for this to put it in my Raspberry Pi, where learning linux is a necessary evil.

  8. Great post! I was exactly looking for this info! Thanks

  9. Shawn says:

    Thank you for putting this article together which is the most comprehensive guide I have found after endless searching for help on this topic. In particular I have been trying to modify the main menu on my Raspberry Pi, following the tips in section 1. However I have had some glitches with the process, which probably means I have overlooked something.

    This is what I have done so far:
    Tried adding an existing desktop I had creaated saving it to the home/pi/.local/share/applications folder (I first needed to select ‘show hidden files’ in file manager to find the .local/share/applications folder). I take it that this is the folder referred to when you say ~/.local/share/applications.

    Clicking on this created shortcut opens file manager but then specifically opens the contents of any USB stick plugged into the RaspPi. This works fine when running on the desktop. However when I rebooted, and restarted the XDE desktop, I noticed that the file manager icon next to the Start Menu (in a similar location as the taskbar in Windows) had been replaced by my ‘USB shortcut’ and File Manager had also been similarly replaced in the Accessories section accessed from the Start Menu. Both shortcuts worked as they should (opening the USB drive), but I had then lost the file manager icon.

    I noticed on going back into my shortcut (using Leaf) that Categories were identified as follows:
    Categories=File Manager; Utility, Core; ETK

    In addition there was an entry for MimeType as follows:

    Thinking that either one of these was probably causing the problem, I commented both lines out and re-booted – However the problem persisted. I also tried re-inserting the line Categories=Graphics to see if the icon moved to a different location than accessories. However still no luck. Finally I removed the ‘.desktop’ file from the folder ~/.local/share/applications upon which all returned back to normal.

    Any tips would be gratefully received on what I might be doing wrong

  10. lkubaski says:

    Hi Shawn, I’m not share I correctly understand your question (are you just trying to change your folder shortcut icon ?) but:
    – “~/.local/share/applications” means “the /.local/share/applications folder that is located in your $HOME folder”.
    – if you change the .desktop file category, you may need to logout and login again to see the change
    – have you tried following step #3 of my post above ?

    I must add that I’ve never used “Raspberry Pi” before, so there may be some slight differences with what I wrote…

  11. Shawn says:

    The Raspberry Pi is a credit card sized computer released last year, that runs a version of Debian called ‘Raspian’. It uses the LXDE desktop as the GUI. As regards the points above I had previously created a desktop shortcut by copying one from the menu (the one that opens file manager) to the desktop as described in step 2. I had then edited the Exec line in the copied .desktop file to add a reference to where the USB drive is ordinarily found (in Media/E813-2764), and also changed the icon to one resembling a USB memory stick. This runs fine from the desktop, but as soon as I copied it to the folder ‘ /.local/share/applications’, and rebooted, it replaced all instances of the file manager in the menu structure. What I was hoping for was an additional icon appearing in the Menu for ‘Open_USB’ alongside the File Manager icon, or at a location of my choice in the menu – then allowing me to unclutter the desktop by removing the original shortcut

    Hope this explains the situation

    • lkubaski says:

      Can you post a copy of your .desktop file ?

      • Shawn says:

        Hello again,
        Here’s what is in the desktop file (called pcmanfm.desktop):-

        [Desktop Entry]
        Icon=/home/pi/Backed up files/Downloaded Icons/USB_drive1.png
        Name=Open USB Drive

        #this line is what appears under icon

        GenericName=File Manager

        Comment=Browse the USB drive and manage the files

        Comment[en_GB]=Browse the file system and manage the files


        #original line opens file manager at /home/pi
        #Exec=pcmanfm %U

        #New line opens USB contents
        Exec=pcmanfm /media/E813-2764


        Basically its a modified File Manager ‘shortcut’ as you can see from the commented line #Exec=pcmanfm %U. I changed the Exec line to open the USB drive in the /media directory (see note below). The icon referred to is one I found that looks like a USB drive. The rest is pretty standard. When copying this to the .local/share/applications folder, I tried commenting out the Categories and the MimeType, in case these were causing the problem but it did not seem to have any effect. Would the fact that the file is called pcmanfm.desktop, have any bearing on the issue.?

        Although the first 2-3 drives I tried did have the name E813-2764, I’ve since found that this can differ depending on the USB drive inserted, so I’ve had to shorten it to /media – if I could find coding to open any subfolders within the /media folder then I could reinstate the full functionality I originally intended

      • lkubaski says:

        I don’t see anything wrong with your .desktop file. I suggest that you start with a stripped down version (using the one from my post as a starting point), validate that it works, and then and more attributes until you find the one that causes the issue…

  12. Shawn says:

    Think it may have had something to do with the line

    Just out of interest what do these categories do? (I imagine the first one was the one causing file manager to be replaced

  13. Shawn says:

    Thanks for all the help.

    If you OK with it I would like to post a link to this page from the other forums I have been to, as this has been the best guide I have come across for ‘shortcuts’ in LXDE.

    All the best

  14. Shawn says:

    Hello again

    I am hoping you might know the answer to the following question as have posted it in a number of forums and as yet not one appears to have an answer. It is connected to my comments above where I wished to set up a short cut to open the contents of an inserted USB flash drive. PCManFm automatically detects such a device when it is connected and asks if it should be opened in the file manager. What I wish to do is to be able to re-create this action using a .desktop file (if possible). The key line appears to be

    Exec=pcmanfm /media/E813-2764

    where the coded name after media/ is the name given to a particular USB stick. Where the same stick is used each time this line works, but falls down if a different one is used, since the coded reference alters. In short what I am looking for is a wildcard of sorts that would replace the coded name and open any folder found beyond media/.
    I can get this to work at command level using something like ls * /media, but this does not translate in the LXDE environment.

  15. Shawn says:

    A slightly different one – have installed a series of scripts, which are launched by the following executable within the folder /home/get_iplayer:


    This works fine when run as a command line but I am unable to get it to launch from the desktop icon. Have tried using different key lines of script as follows:



    path=/home/get_iplayer/ – in combination with

    Terminal=True – as it needs to run from within a terminal window

    Any ideas?

    • cokegecko says:

      In lubuntu I was having a simmalar problem running “java -jar /home/dan/Documents/Minecraft/Minecraft.jar” from a .desktop launcher. To fix it I right clicked on icon on the desktop, Click the Desktop Entry tab and Unchecked both “Execute in terminal emulator” and “Keep terminal window open after command execution”

  16. Novrian says:

    Good post for noobs. Thanks dude 😀

  17. James says:

    I’ve got the same problem as shawn except with Sauerbraten. The file suaerbraten_unix resides in /home/Games/sauerbraten/ and I can launch it successfully from the command line when in the directory. I’ve discovered as writing this, that Sauerbraten as I’ve compiled it looks for files via relative paths, so if I call the sauerbraten_unix binary from any other location than the directory in which it resides, then the program complains about not having a certain file. When adding the sauerbraten_unix file to the desktop menu using lxshortcut and then running it, I did not get any feedback about the error that was occurring.
    I have tried setting the path variable to ~/.sauerbraten and to the home directory of the suaerbraten client, but I get the same error message as when I run the client from any other directory (the error message complains that I have no native client installed and requests that I run make install – but I have already done this successfully). I suspect a compiler flag of some kind or possibly some sort of compilation complication due to running selinux (which I have no experience with).
    If anyone knows how to solve this then I’d be grateful. Many thanks.

  18. My name says:


  19. Dave says:

    Thanks for this. Used it to add a start menu entry to the Internet section.

  20. sergey says:

    When I add entry e.g. for Eclipse and run it, ‘init’ becomes the parent of this process and its environment in not what I want it to be. How can I create desktop entry that gives the behavior as if I started shell, it sourced bashrc file and then eclipse were run?

  21. nix says:

    Thank you very much I have been looking to create another category and then multiple sub cats.

  22. nix says:

    Ok so I created an entry in the start menu then created a submenu but how do I add programs to the submenu?

  23. Helen says:

    Thank you for the provided information, very useful for beginners. Unluckily for us, there is a lack of information about how to make basic functions (that are automatic in other disros) work in PCManFM and LXDE.

  24. andrewhazelden says:

    Thanks for writing this excellent tutorial. Your blog posts have been really helpful to me as I have started packaging my first homemade Raspberry Pi program called “Mission Control”. It is really nice to be able to create my own LXDE .desktop shortcuts, and menu items!

  25. Jon Baker says:

    Thanks – very handy. Note to anyone patching a /desktop file. In order to associate an icon, add the absolute path to the icon, then do the ‘lxpanelctl restart’ shoukl work great !

  26. Paul says:

    Thank you for posting this comprehensive group of Posts. They are clear, concise and work flawlessly, …paul

  27. Doug Paulley says:

    still damn useful months later 🙂 – thank you.

  28. galaxio says:

    Thanks!!! Just what I was looking for.

  29. Pierre says:

    Good, very good and very useful

  30. says:

    Thanks, consistent and clear!
    I’d like to ask you about a specific issue that I have.
    When I create a menu entry for the ImageJ application, the shortcut can’t remember the work folder (“Path=”), so the software doesn’t show the plugin (because it can’t find this location, I guess). It doesn’t occur when the shortcut is on the desktop.
    Any ideas? Thanks again!

  31. Am says:

    Great, thank you!

  32. Awesome article because although it has tons of useful information I was just dealing with a client that wanted his Lubuntu install to have desktop shortcuts of the main installed apps and you have a screenshot of explaining that by right-clicking on a menu entry and selecting “add to desktop” it will create a shortcut. Many many thanks man. Sometimes simple is the best.

  33. John Linq says:

    Thanks a lot for the nice and extensive how-to.

  34. tech says:

    Two hours to write a “how to create a desktop shortcut” article. I am not criticizing the author – to the contrary, it is extremelly well written. I understand LXDE is a light desktop environment but even Windows 3.1 featured shortcuts…

  35. coreybrady says:

    very cool. i’m looking around now for ways to add command line arguments; will add if i find out how

    • coreybrady says:

      turns out it’s easy — the Exec line is actually just what you’d execute from a terminal window, seems like you can use most anything that would work there

  36. Stefano says:

    Thank you for your how-to. Nice job.

  37. Steph says:

    Hi Laurent, thanks for your blog.
    Eventually have you stayed on LXDE ?

  38. Mat leb says:

    Thanks a lot! It solved my issue.

  39. Pingback: desktop file can t run script in terminal - DL-UAT

  40. Nick says:

    Well written, easy to understand, many thanks, much appreciated.

  41. ks says:

    Thanks a lot for sharing this! So far yours is the easiest way to follow!

  42. braniti says:

    Worked great , thanx

  43. Petra says:

    Thanks for this article. It really helped me, this method is so simple and it really works.

  44. Jeff says:

    Thanks! This worked perfectly!

  45. Troy Spears says:

    Thanks much. I’m having a little trouble getting the icon into right category.

  46. Bob Reed says:

    Thank you for your time in putting this article together. I hope at some point to be able to do a write up as good as this in the future!

  47. Daro says:

    Good job!

  48. Bob says:

    Great Info – Thanks for your efforts!

  49. Nathaniel says:

    Does anyone know how you would go about opening the lxde start menu using the Super key?

  50. shantiq says:


    Some applications on lxde will be situated in unexpected places
    See what i had to do here to get the panel to “see” the icon
    WAS NOT VISIBLE at first

    This is for cantata which is a music player using mpd


    cd /usr/share/applications/kde4
    sudo gedit cantata.desktop

    and then add the name and path of your icon

    Icon=cantata.png or wherever you have stored it

    then to run lxpanelctl restart to refresh the panel with the icons

  51. Andy Wright says:

    Thanks. Saved this for reference. Thought I’d share my experience with the lxshortcut GUI. I used it to put icons on the desktop as I prefer to use a graphic utility where possible. Managed to put the links I wanted on, but noticed a bit of weirdness and had two problems.
    1. Couldn’t get back into the links to edit them with lxshortcut -i, because I couldn’t remember the full name of the file that I had entered when calling lxshortcut -o and the file utilities and properties window only show the chosen display name. Solution: right click on one of the shortcuts and set the “open with” property to lxshortcut -i. Then this option for opening will appear when you right click any of your shortcuts so you can edit them with the lxshortcut GUI without remembering the name. Of course you can also get the name by calling ls within ~/Desktop from the command line. Strangely, if you choose rename from within the File utility, it will open a dialog displaying the real name and allow you to rename it without changing the display name.
    2. Couldn’t find an icon for Thunderbird. Solution: from the command line enter “locate | grep icon” and a list of all directories with that icon will come up. Navigate to one of them in the lxshortcut change icon window and select the icon you need.
    I’ve now got a working set of shortcuts on my desktop.

  52. Andy Wright says:

    Oops: I used angle brackets for file name in the command line in problem 2. and they are not displaying in HTML. Command should read “locate [file name] | grep icon”. Perhaps you could edit my reply. Thanks

  53. carles says:

    The day is little brighter when the first result you find in Google is a page like this! Excellent!

  54. kor says:

    nice work than you very much!

  55. Frederico C Wilhelms says:

    Great GIG , worked like a charm ..

  56. Juul says:

    Great article and exactly what I was looking for. Followed your tutorial and the result is as expected.

  57. Max says:

    Excellent! Exactly what I need.

  58. Dieter Kinzinger says:

    Great article. Very helpful.

  59. Alex says:

    Great job thanks!

  60. br says:

    thank you.

  61. Guest says:

    Thanks, good job !

  62. EMD says:

    Thank you very much for your post, it was really useful!

  63. manji says:

    Thanks for your help. Very good post and self-explained.

  64. Ron says:

    Your write-up is great and very helpful! Your contribution is helping thousands of people become more proficient in the LXDE environment. You are making the world a better place for everyone. Thank You!

  65. Stan says:

    Found this site after lots of googling for lxde menu editing and reviewing lots of useless sites.
    This site is the first one that really makes sense – very detailed and to the point.
    Thanks very much!

  66. Daniel says:

    You did such a great job writing this up. It is informative, well written and absolutely beautiful. You solve our un-knowing so well that we move on to the next issue of un-knowing with some relief. I would think most people who view this post have benefited from your work. I understand we need a little feedback sometimes and I gladly give it as I have benefited from this post. Write for the love of writing and hope of helping others … your good at it.

  67. A genina says:

    Thank you so much , with your help i was able to understand how LXE start and fix my issue

  68. Richard says:

    Not sure if it’s been mentioned, but the text files in /home/pi/.cache/menus look like they’re connected with the ‘Menu’ entries; couldn’t you add entries to this instead? P.S. I’m a Linux newbie!

  69. Richard says:

    I tried deleting the files in /home/pi.cache/menus and found that entries still appeared. Eventually found that /usr/share/raspi-ui-overrides/applications also contains .desktop files that clash with or add to /usr/share/applications etc. Going to try using /usr/share/raspi-ui-overrides/applications as my folder of choice for the .desktop files and remove all others. Will report back if I find any issues.

  70. Jma says:

    Thank you for this post it explains things clearly.
    Another way I’ve found to do this is use a program called Alacarte.
    A lot quicker/easier to use as it’s all done through a GUI.
    It can create new menus, new items in an existing menu, add/remove separators etc..
    It should work in any desktop environment that follows the specifications.

  71. Mortimer says:

    EXCELLENT!! I have looked all over for this info. Very well written and explained.

  72. tom0mason says:

    cheers for the info, however I still find it a PITA (cognitive decline etc…) .
    Can nobody put a script together that takes the pain out of this process? I know I can’t as I keep loosing the plot! 😦

  73. Luigi01 says:

    Yeah, great! Works like a charm, thanks very much!

  74. traycee says:

    “3. Adding a folder shortcut on your desktop”

    Thank you. Unless it is was overlooked, there is surprisingly no menu entry or way to create this.

  75. Holger says:

    hi does anyone know a way to get a search through the application option like gnome or KDE has. I think it is very useful, but I can’t find anything on this topic online. Nevertheless I am super happy with LXDE.

  76. Holger says:

    Hey does anyone know how to get a search function for LXDE to search through applications like gnome or KDE has? I really like LXDE but i miss this searchfunction. Of course you can search in / for files and get .bins, but I would love to have a gnome/kde like searchfunction.
    Hope anybody can help me here

  77. Alisson says:

    This post is great and It goes to the heart of some things I’m struggling with right now. I have the latest Debian Stable Version (09/19/2016) with LXDE as the only desktop environment. What is missing, what I am struggling to solve here is that when I right click my Desktop Area, I don’t get a Shortcut option to launch the “LXShortcut” tool as you show here in this article, implicitly saying that it is available to every LXDE. My LXDE doesn’t show a shortcut option! The CREATE NEW option, when I right click the desktop, it only shows a NEW FOLDER option!
    That really bothers me, because I use this easy way to create shortcuts a lot, specially to create command shortcuts icons to run windows apps through Wine Application. For example, If I need to run a command like “wine file.exe” a lot, then I create a shortcut in my Desktop, using the Shortcut Tool mentioned in this article, to create the shortcut with a command in it implicitly.

    Without this shortcut when I right click the Desktop, things get slower, more work is needed and I can’t understand why this basic option is not present in my LXDE!!!
    Can you offer any kind of help in this matter that is directly related to your post?
    Thank you.

  78. Pingback: Raspian – Add Menu Item – 3d0c ///////// /* <!–# /bin/ –> /////////

  79. gosc says:

    Left comment: Created runnable .desktop file in applications directory, restarted panel, restarted computer, DOES NOT WORK.

  80. Griera says:

    Great! Thanks a lot!

  81. anonymous says:

    You’re a complete genius. Saved my day. Thanks a lot! 😀

  82. brvcf says:

    I’m using Lubuntu 16.04 and I have installed it for several of my customers. Overall it’s great but the inability to easily create a shortcut to a file or a URL is a significant shortcoming when compared to Windows. The inability to easily create an ‘Internet shortcut’ to a URL by dragging and dropping from a web browser to the desktop. Microsoft went backwards when they created Edge without this ability and LXDE/Lubuntu even worse because you can’t even right-click on the desktop to crate a shortcut and and then paste in the URL.

    • tom arnall says:

      you’re very right. LXDE is a great desktop but sadly lacking when it comes to creating url icons. i assume you’ve found stuff on other sites which show how to create one with an editor.

  83. Carlos Vega says:

    Great, great post! (First time here 🙂

  84. karelzimmer says:

    Thank you very much for this article.
    Just the information I needed.

  85. ramsamba says:

    Thank you so much. Great info. Works for me.
    You’ve earned lots of Good Karma! May the force be with you….

  86. gary knott says:

    But I need my shortcut to (1) launch a terminal window (LXterminal) and then execute the command to run the program: /usr/lib/mlab

    setting terminal to true doen’t work! What should I do to get this behavior?

  87. Pingback: Waterfox – a Firefox Quantum Replacement | 99 Developer Tools

  88. Benjamin S. Levy says:

    M. Kubaski, merci pour de travailler. I am following your good directions to create menu-based IDLE for Python3.5.2. Mais, j’ai un petit probleme.

    I have installed Python3.5.2 on my RPi-3B device and it loads successfully from the terminal command line from /Python-3.5.2/python. I followed your directions and used nano to create a desktop file for python3.5. I used sudo nano to ceate the *.desktop file, then executed sudo lxpanelctl restart. The IDLE entry for Python3.5 appears in the Raspberry menu/Programming/ but it does not load an IDLE. There is a file IDLE3.5 in /usr/share/applications/ as idle3.5. Executing it at the command line replies with ‘Your Python may not be configured with Tk.**’. Yet, I can import Tkinter at the python3.5.2 command line.

    I can provide the contents of my *.desktop file as needed.

    Au secours, SVP.

    Benjamin Levy

  89. George says:

    Finally, I got my new entry working. Thanks for the post.

  90. Nkensa says:

    Thanks… :thumbsup

  91. Emerson Moura says:

    Thanks. That’s a great how-to!!!

  92. Muce says:

    This is a really great write-up that shows the low level details on how this process works. Thank you. Still useful even now in 2019!

    I do find it curious though that Jma mentioned the alacarte program way back in 2016 and know one commented on trying to use it. I installed it on my LXDE based Lubuntu using the package manager. It installed an entry in my main menu preferences folder called of all things “main menu”.
    With it I was able to add a shortcut to the internet menu folder for a program.
    From there I right clicked on the new entry in the menu and chose “add to desktop”
    Then just for kicks I right clicked the taskbar and chose “Panel Settings” and added it to my taskbar quick launch area. Easy Peasy no Terminal Queasy! Just GUI goodness.
    From here I can place additional copies wherever I might want one.

    Thanks Laurent for this great write-up
    And Thanks Jma for the excellent Alacarte program tip!

  93. MarcosNi! says:

    Awesome tutorial!! I was trying to add a tor-browser icon on my desktop and managed to do it by first adding it to my start menu. The icon was a little tricky since I had to copy one of the icons (I tried 48px and it worked) to /usr/share/pixmaps and the entry got the correct icon. BUT, when I did the “add to Desktop” procedure, it didn’t create the shortcut with the right icon.

    Does anyone know how to fix this?

  94. petr says:

    excellent clear explanation!!!
    many thanks

  95. Kevin Mullen says:

    Thank you very much. Not only helped me set up an application on the menu, taught me a lot about where all these files are located. Great job! I think that as this you are now getting loads of comments and lots of references to this location throughout the web, you can change update your request for comments to acknowledge the success that your work has achieved for all us learners. Well worth your well documented article.

  96. jim says:

    Still being found useful for those of use born and raised on the command line. Thank you for your work.

  97. Paul H Alfille says:

    Very helpful. I used it to create a menu entry for a little screen backlight control:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: