View Single Post
Posts: 100 | Thanked: 307 times | Joined on Jan 2015 @ Argentina
#19
Originally Posted by Mikkosssss View Post
You can do it manually by making following text file:
Code:
[Desktop Entry]
Type=Application
Name=Name of your shortcut
Exec=Command that you want to do 
Icon=/patch/to/your/icon.png
And name it something.desktop

Then place it to /home/user/.local/share/applications
It didnt work to me.

Then I added the line
Code:
Terminal=true
to the something.desktop file and it worked

Note: I guess if you are going to run a .sh file probably it will run in terminal (busybox) so terminal=true, else terminal=false.


The other thing I had to modify was the Exec line this way
Code:
Exec=/bin/sh /home/user/myscript.sh
without the /bin/sh I got an error message :
Code:
I could not find /home/user/myscript.sh 
running /bin/sh instead