You are not logged in.

#1 2026-03-26 05:35:25

Deus124
Member
Registered: 2026-03-26
Posts: 2

[Solved] Can't lauch GUI session from user other than root

Hiya folks, i could use some help here. After several hours of looking around the internet i just cant figure out how to fix this issue.
When trying to login using the Ly display manager to a Plasma (wayland) session using a user Other than root, i get the error
"dbus[14065]: unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/0" is owned by UID 0, not our UID 1000" and
"dbus-daemon[14065]: [session uid=1000 pid=14065 pidfd=5] activating service name='org.freedesktop.systemd1' requested by ':1.0' (session uid=1000 pid=14066 com="usr/bin/startsplasma-wayland")
dbus-daemon[14065]: [session uid=1000 pid=14065 pidfd=5] activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1"

the first error changes to "dbus[14065]: unable to set up transient service directory: XDG_RUNTIME_DIR "/run/user/0" not available: no such file or directory" if i am not already logged in to a TTY. 
When i login as root, the Plasma (wayland) session launches normally.
the ly@tty2.service is running and spawns the ly-dm process as the root user
if i login to a tty as my regular user and echo XDG_RUNTIME_DIR i get the expected /run/user/1000
i've tried other display managers and have the same issue, i can only launch a GUI as root.

I dont know if i have a misconfigured XDG_RUNTIME_DIR, or what. Im not even sure where it's being set, but i tried manually adding XDG_RUNTIME_DIR="/run/user/$UID" in /etc/environment with and without quotes around /run/users/ because im not sure what the expected syntax is there.

Any help i can get with this will be appreciated, not being able to get this to work is upsetting me.

Last edited by Deus124 (2026-03-26 06:10:18)

Offline

#2 2026-03-26 06:09:49

Deus124
Member
Registered: 2026-03-26
Posts: 2

Re: [Solved] Can't lauch GUI session from user other than root

Woops, i figured it out. For some reason i had XDG_RUNTIME_DIR set in /etc/security/pam_env.conf i deleted that entry, rebooted, logged in and it worked fine. i also added a user specific XDG_RUNTIME_DIR in ~/.config/environment.d/.conf, though i'm not sure if that mattered or not.

Offline

Board footer

Powered by FluxBB