LittleVaaty / VDesk

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

VS Code Closes after vdesk.bat runs #25

Open deathb4disc0 opened 2 weeks ago

deathb4disc0 commented 2 weeks ago

Hi here is my batch file. VS Code opens on the correct virtual desktop but closes when the bat ends.

@echo off vdesk run -n -o 4 "C:\Users\cbritton\AppData\Local\Programs\Microsoft VS Code\Code.exe" -w 5000 vdesk run -n -o 3 "C:\Program Files\Mozilla Firefox\firefox.exe" -w 5000 vdesk run -n -o 2 ms-teams.exe -w 5000 vdesk run -n -o 1 "C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE" -w 5000

OS Name Microsoft Windows 11 Enterprise Version 10.0.22631 Build 22631

deathb4disc0 commented 2 weeks ago

Follow up, if I run this via windows terminal the window stays open. vdesk run -n -o 4 "C:\Users\cbritton\AppData\Local\Programs\Microsoft VS Code\Code.exe" -w 5000

LittleVaaty commented 1 week ago

The proper way to launch vscode is to use code.md (AppData\Local\Programs\Microsoft VS Code\bin) but this will cause vdesk to hang. I have create an issue to rework the way process are handle and all related bug