I made a .desktop file so I could run an .sh file from the Plank dock. It is as follows:
[Desktop Entry]
Type=Application
Terminal=true
Name=Drive
Icon=/home/finn/Programs/drive-logo.png
Exec=/home/finn/Programs/grive.sh
It links to this .sh script, which is currently a placeholder:
#!/bin/bash
cd ~/Drive
mkdir itworked
The last line will be replaced with grive
once I get it working. At the moment it just makes a folder so I can see if the script ran successfully. I made it executable with sudo chmod +x drive.desktop
while in /usr/share/applications. Currently it works perfectly if I navigate to /usr/share/applications in the Files browser and double-click on the icon. It shows up in the Slingshot applications menu, and I can drag it to the Plank dock, but when I try click and open it from either of these places it does nothing. Weirdly, if I open Files as Administrator and then try open it from there it also does nothing. I've tried setting the permissions to match other applications, or just be fully open to everyone, but it didn't help.