Dbus issue when trying to run Wayland session
0
votes
0
answers
204
views
My distro is based on Slackware, therefore it doesn't have systemd, but SysVinit + elogind. I'm trying to use LightDM to initiliaze my desktop environment sessions, but I have either dbus services working properly or Wayland working.
My
Also, when using Wayland the error above always happens.
Is there a clean solution that fixes the issues I'm facing?
/etc/lightdm/Xsession
file is like this:
[ -z "$BASH" ] && exec $SHELL --login $0 "$@"
shopt -q login_shell || exec $SHELL --login $0 "$@"
set +o posix
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
[ -f $sysresources ] && xrdb -merge $sysresources
[ -f $sysmodmap ] && xmodmap $sysmodmap
[ -f $userresources ] && xrdb -merge $userresources
[ -f $usermodmap ] && xmodmap $usermodmap
dbus-launch --exit-with-session $@
It works fine, except if I want to start a Wayland session, which in this case it doesn't load in LXQt 2.1.0 or Cinnamon 6.4.9. The log ~/.xsession-errors
says something like:
dbus-update-activation-environment: error: unable to connect to D-Bus: Failed to connect to socket /tmp/dbus-6WcQhFZXE2: No such file or directory
If I change the last line of /etc/lightdm/Xsession
to dbus-run-session -- $@
, then
the Wayland sessions work, however some services stop working properly due to a dbus problem. For instance, cron daemon (crond
), which is executed in a boot script that runs before Xsession: if cron is set to shutdown my Xfce session, it doesn't find the Xfce dbus session:

Asked by Fulalas
(119 rep)
Apr 5, 2025, 10:59 AM
Last activity: Apr 5, 2025, 11:29 AM
Last activity: Apr 5, 2025, 11:29 AM