eksime / VDesk

Launch programs on new virtual desktops.
GNU General Public License v3.0
641 stars 57 forks source link

run-on doesn't launch on a VirtualBox Machine new desktop #18

Open drewkill32 opened 8 years ago

drewkill32 commented 8 years ago

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

Gaibhne commented 7 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 ?