Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
202
rated 0 times [  202] [ 0]  / answers: 1 / hits: 309637  / 2 Years ago, fri, may 27, 2022, 12:12:55

Possible Duplicate:

How can I edit/create new launcher items in Unity by hand?

How can I create launchers on my desktop?






I want to add some shell scripts in my launcher as shortcuts..



They are located deep inside and i have to navigate to it every time to execute them...



I tried this link where the 2nd answers seems to solvee it but as said in comments neither can i find any option to add a launcher..



I guess it existed in 11.04 with a "+" button on launcher but i use 12.04.



So how do i get this working?? And i need those commands everytime for sure..!


More From » launcher

 Answers
3

  1. Create *.desktop file, location depends on if it is for personal use or all users. If these directories do not exist, create them.



For personal use , ~/.local/share/applications



gedit ~/.local/share/applications/name.desktop


For all users, /usr/local/share/applications/ (or /usr/share/applications/ depending upon your system).



sudo -i gedit /usr/share/applications/name.desktop



  1. Paste below text



    [Desktop Entry]
    Type=Application
    Terminal=true
    Name=unmount-mount
    Icon=/path/to/icon/icon.svg
    Exec=/path/to/file/mount-unmount.sh


    edit Icon= and Exec= and Name=



    Also Terminal=True/false determines whether the terminal opens a window and displays output or runs in the background


  2. put this in unity panel by dragging it from files manager




logic is very simple that unity panel allows *.desktop files as launcher though I haven't tried it because I use Natty.


[#38167] Friday, May 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leadprogres

Total Points: 298
Total Questions: 114
Total Answers: 139

Location: Samoa
Member since Mon, Nov 8, 2021
3 Years ago
;