I used chmod +x to make the script executable and for the shortcut too.
But it isn't working. Clicking the shortcut brings up a window asking if I want to run it or display its contents. Nothing happens when I select "execute" and the icon isn't showing either.
I do have snippets of code from other sources, but for the life of me I can't make this work. Help?!
Avoid referencing home as ~ in a desktop entry. Use the Full Path, instead
(replace "$USER" or "username" with your actual system username): /home/$USER/scripts/kubuntu-vm.sh
Um... This may be a dumb question on my part, but in the above, you had it in /scripts - did you move the file?
EDIT: Nevermind, I misread it and yes, it was a dumb question. I just realized what I read and what I thought I read.
Can you remove the first argument ($1) and then try it?
Thanks so much for replying @337harvey . It's actually working now (mostly). Moved the script and icon to a folder in the /home/ directory, and just removed the ' ' around the directory names and it's working and have it on my dash dock no less!
Only, for the life of me, I cannot get the png icon to show. Any ideas?
Okay, so maybe it isn't totally working. I can't get it to work on the actual desktop as a shortcut. But it working on the dock... I can't access the properties by left click when it's on the dock. So it's basically an invisible space holder right now, lol.
Well, technically... if I could get it to work on the desktop, but it doesn't. It only works when I hit the super key, type the shortcut name and left click to add to the dock. (there are no properties options there).
On the dock, it is invisible. It's like a space holder but when I click it, the vm guest opens perfectly.
I also finally got it on the desktop! Woohoo. But going into properties and changing the icon there didn't work. For good measure, I also tried an icon I'd used on a different app previously... also didn't show.
How bizarre... I just can't figure out what to do. Gah!
Thanks so much @337harvey and @Aravisian for the coding help to get this to work!! /pixmaps/ was the key for the icon, btw. Just needed to reboot to see the changes.