I've using 2 user and switch them between works using this command:
dm-tool switch-to-user workuser1
and using Ctrl+Alt+F7 /F8 to switch users after logged+ in.
But when I switch user, some applications doesn't run/downloads stopped (eg. KTorrent, Hakuneko-Desktop). I believe this did not happen in older version of Ubuntu (18.04), I'm using 20.04. Similar problem here
What's the workaround so the application/downloads would still work even when user is switched?
Already Tried 1
VNC using the following but it shows blank screen and the downloads still stop when switching user.
/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -display WAIT:0 -forever -shared -rfbport 5900 -localhost -passwd foobar12
Already Tried 2
Running using display :1 (user B's screen), but it doesn't work (nothings shown or error):
DISPLAY=:1.0 ktorrent &
Already Tried 3
QT_QPA_PLATFORM=offscreen ktorrent
The bad part: you cannot see the main windows, but the good part: download won't be suspended when switching user