I have another workaround at the moment. I use wmctrl -s
instead of xdotool to switch to desired workspace, then launch the program. I discussed it here:
Launching Applications in Workspaces with matching label (continued).
You could easily modify .desktop files with sed using regex. Let’s say you always want applications belonging to personal qube to open in 3rd workspace and switch to that workspace. Do this:
sed ~/.local/share/applications/org.qubes-os.com.*personal*.desktop -i -e 's/\(Exec=qvm-run\)\(.*\)/Exec=sh -c \"wmctrl -s 2;qvm-run\2\"/'
wmctrl -s 2 since Workspace indexes start at 0
To revert to original .desktop files:
qvm-appmenu…