eksime / VDesk

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

Cannot Use VDesk due to spaces in filepaths #100

Open opaintner opened 2 years ago

opaintner commented 2 years ago

Hello, I'm a new user to this program, and I really think it could be useful to me. However, when trying to do the VirtualBox example, the program keeps throwing an error saying that "The system cannot find the file specified." When I run the command to launch my vm normally without using Vdesk, it launches fine, but the issue here seems to be Vdesk. Here's the commands I'm running:

vdesk noswitch:true run:"C:\Program Files\Oracle\VirtualBox\VirtualBoxVM.exe" --comment "Debian 1" --startvm "{a0efba03-1055-4860-9fc7-7fc565c7f667}" --fullscreen This command throws the error.

However, when I run something like RetroArch, which does not include any spaces in the filepath, it runs fine. vdesk noswitch:true run:"C:\tools\RetroArch-Win64\retroarch.exe"

I should also mention that I have installed the software through Chocolatey.

Is there something wrong that I'm doing here? I know there was another issue posted, Issue #95, but that issue was with the fact that Firefox was not in the correct Program Files folder. I have verified that it is the correct path I am typing in. Even the Chrome example doesn't work because it's stored in Program Files, which includes spaces in the folder's filename and that excludes almost every program on my computer. Even running from a .lnk shortcut to the VM or to Chrome still throws the error even though the path to my Desktop doesn't include any spaces. Any ideas?

Again, super excited to start using the software, and thank you for your time.

therentabrain commented 11 months ago

Just because this is super abandoned, if anyone has this issue, pehaps a shortcut would work? You can create a shortcut that has all your cmd line args in it, and then use vdesk to start the shortcut (.lnk). I doubt a bat would work because vdesk only works on the first window created.

There's a fork of vdesk which looks promising over here: https://github.com/LittleVaaty/VDesk