Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running dwm through dbus breaks logind session #1434

Open
v3natio opened this issue Sep 28, 2024 · 3 comments
Open

running dwm through dbus breaks logind session #1434

v3natio opened this issue Sep 28, 2024 · 3 comments

Comments

@v3natio
Copy link
Contributor

v3natio commented Sep 28, 2024

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
Copy link

RetroViking commented Oct 5, 2024

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
Copy link
Contributor Author

v3natio commented Oct 7, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants