Open psztoch opened 3 weeks ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
Didn't try Debian, but on Ubuntu it's the default target:
zcobol@toto:~$ systemctl get-default
graphical.target
zcobol@toto:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
To change from multi-user.target
run sudo systemctl set-default graphical.target
I am talking about --user
target. Not global/system target.
System targets work good.
/feature
Ubuntu and Debian are using the default.target
for user and global and graphical.target
for all users:
elsaco@RIPPER:~$ systemctl --system get-default
graphical.target
elsaco@RIPPER:~$ systemctl --global get-default
default.target
elsaco@RIPPER:~$ systemctl --user get-default
default.target
If you want to start services for a user change the default.target
. On WSL Ubuntu 22.04 dbus-user-session
needs to be installed otherwise you're greeted by Failed to connect to bus: No such file or directory
when running systemctl --user
man 7 systemd.special
explains it all 😀
man 7 systemd.special
explains it all 😀
And graphical-session.target is started by in example gnome-session. If I'm not using GNOME, shouldn't I expect WSL to automatically start wslg-session, which binded to graphical-session will then run the necessary services to come to life...
I do not want to install gnome-session package with 347 packages as dependency:
0 upgraded, 347 newly installed, 0 to remove and 0 not upgraded.
Need to get 228 MB of archives.
After this operation, 823 MB of additional disk space will be used.
Debian and other distribution use graphical-session.target to start some user services. Please, add support for this.