I've just come across this question which outlined the process of starting an application on a specific virtual desktop. The only issue is, Discord uses a different method of starting, which looks like this: (copied from the Start Menu shortcut)
C:\Users\<username>\AppData\Local\Discord\Update.exe --processStart Discord.exe
When I add the VDesk command into the mix like this:
vdesk on:2 noswitch:true run:"C:\Users\<username>\AppData\Local\Discord\Update.exe" --processStart Discord.exe
Discord opens up the exact same way as if it was launched normally, on the current active virtual desktop. This vdesk command only works if I edit the shortcut, because the "Start in" directory determines what version of the application is actually run, which is currently set to this:
I've tried changing the shortcut to this:
C:\Users\<username>\AppData\Local\Discord\Update.exe --processStart "vdesk on:2 noswitch:true run:Discord.exe"
and also tried with the full path to VDesk:
C:\Users\<username>\AppData\Local\Discord\Update.exe --processStart "C:\Program Files (x86)\VDesk\VDesk.exe on:2 noswitch:true run:Discord.exe"
but these last 2 didn't even start the application at all. Running another application (HexChat) that uses a single exe file to start works without issues.
Is there a way to make this work?