LukeSmithxyz / voidrice

My dotfiles (deployed by LARBS)
GNU General Public License v3.0
4.28k stars 1.21k forks source link

running `dwm` through `dbus` breaks `logind` session #1434

Open v3natio opened 3 weeks ago

v3natio commented 3 weeks ago

The following changes

1402

1340

break the logind session integration for systems using systemd. logind already takes care of starting the session with a dbus daemon, so there's no need to run one session within another session. This might perhaps be a fix for non-systemd init systems.

RetroViking commented 2 weeks ago

Many thanks for posting this, @v3natio . Deleting dbus-launch and dbus-update-activation-environment --all should fix the duplicate processes that you see on Arch when opening htop. This thread on the Arch forums explains in more detail.

By the way, the Arch Wiki recommends adding the last if block in /etc/X11/xinit/xinitrc to your custom .xinitrc profile (for LARBS, that's in ~/.config/x11/xinitrc):

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

This will source a systemd script that ensures there's no problems.

v3natio commented 2 weeks ago

Yup, I saw that as I'm in that thread. The only thing I'm missing is whether that if block goes before, or after the exec dwm line.

RetroViking commented 2 weeks ago

The only thing I'm missing is whether that if block goes before, or after the exec dwm line.

Anywhere before exec dwm is fine.