Your missing something... an = after connect, no spaces.
So your script should read:
#!/bin/bash
virt-manager --connect=qemu:///system --show-domain-console Xubuntu
Your missing something... an = after connect, no spaces.
So your script should read:
#!/bin/bash
virt-manager --connect=qemu:///system --show-domain-console Xubuntu
True, I just prefer full path because it is easy to miss a whitespace after tilde.
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?
Right click it, choose properties then click on the left image and browse to the .png file. Click ok
Which script did you use for anyone else looking for the solution?
Actually, it's working now, without the = . It was the ' ' around the directory names. Just can't get the icon to show.
Well, it was a part of the command... sometimes those things are written to be omitted on occasion. Up to the developer
Right click it, choose properties then click on the left image and browse to the .png file. Click ok
Right click it, choose properties then click on the left image and browse to the .png file. Click ok
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.
Which script did you use for anyone else looking for the solution?
Agreed. I'll post what I put together for the full script + shortcut code as soon as I have it fully functioning.
You can adjust the icon on the desktop then add it to the dock, (drag and drop)?
Is the dock a snap or flatpak?
Icon='/home/username/Pictures/kub.png'
For the icon, try just
Icon=kub.png
Place the icon in /usr/share/pixmaps (you can try without moving it first if you want...)
Test if that works.
Not icons folder?
/pixmaps is better as in /icons, there's generally a theme.index, whereas /pixmaps is General Resource.
EDIT: Re-reading this, I see I generally generalized this too much.
You can adjust the icon on the desktop then add it to the dock, (drag and drop)?
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.
Did you chmod +x vm.sh while in the desktop in terminal?
Forgive me, in the scripts folder where this script resides, did you chmod it?
Did you chmod +x vm.sh while in the desktop in terminal?
Forgive me, in the scripts folder where this script resides, did you chmod it?
I had, yes. But did it again for good measure.
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!
Tried aravisian's idea? You can sudo copy the icon to pixmap if it doesn't exist.
/pixmaps is better as in /icons, there's generally a theme.index, whereas /pixmaps is General Resource.
EDIT: Re-reading this, I see I generally generalized this too much.
That, generally, is generally okay. 
So I gave it a go... no success. But I think something weird is going on with it. I may need to reboot my computer.