I have created a desktop launcher to execute a bash script but the problem is with directory. The file to be executed by launcher lies in /home/techy/folder/file.sh
and the desktop launcher is located in /home/techy/Desktop/app-launcher.desktop
.
So its not executing the file properly.
[Desktop Entry]
Version=1.0
Name=update
Comment=This is launcher
Exec=/home/techy/folder/file.sh
Icon=/home/techy/Pictures/icons/update_icon.png
Terminal=true
Type=Application
"cd /folder" "./file.sh"
I want the .desktop to do this.
– techy Jan 10 '17 at 10:55app-launcher.desktop
file – Nullpointer Jan 10 '17 at 11:01chmod +x
BOTH of those files> sh and desktop? – Mark Kirby Jan 10 '17 at 11:13" [Desktop Entry] Version=1.0 Name=update Comment=This is launcher Exec=/home/techy/folder/file.sh Icon=/home/techy/Pictures/icons/update_icon.png Terminal=true Type=Application"
The .desktop have 775 permissions
– techy Jan 10 '17 at 12:16Exec=gnome-terminal -e "bash -c cd /folder && file.sh;bash"
– Mark Kirby Jan 10 '17 at 12:55