Open drewkill32 opened 8 years ago
I ran into the same issue. It seems that VirtualBox checks the active desktop after a second and spawns the new window whereever that happens to be. That's why switch works (but if you switch to a different desktop really quickly right after issuing the vdesk command, it will spawn there instead) and run-on doesn't. It seems weird that a program that is listed in the examples section would not work properly with this tool, was this maybe a recent change to vbox ?
The run-on command launches on the current desktop not the specified in the number.
vdesk run-on 3 "C:\Program Files\Oracle\VirtualBox\VirtualBox.exe" --comment "#2 Win 7" --startvm "54ab47e6-9cd1-44d7-8aab-d4ded43b0307"
Will launch on desktop 1
vdesk run-on-switch 3 "C:\Program Files\Oracle\VirtualBox\VirtualBox.exe" --comment "#2 Win 7" --startvm "54ab47e6-9cd1-44d7-8aab-d4ded43b0307"
Will launch on desktop 3