You are not logged in.

#1 2015-09-24 15:56:21

0x33
Member
Registered: 2015-03-10
Posts: 5

xinitrc needs to start itself with dbus-launch manually

My .xinitrc has these lines:

have() { type "$1" > /dev/null 2>&1; }

if [ ! "$DBUS_SESSION_BUS_ADDRESS" ] && have dbus-launch; then
  exec dbus-launch --exit-with-session ~/.xinitrc "$@" || exit
fi
 exec bspwm

which I copied from another user at #archlinux. As far as i understand it, the lines start my xinitrc using dbus-launch so that bspwm can access a dbus-session. I need this for Thunar to work with GVFS (provide Trash and other stuff). I would just like to know if this is a messy workaround or if there is a better way to do it. And if the new update to systemd (https://www.archlinux.org/news/d-bus-no … ser-buses/) has any implications for me with this problem.

Offline

#2 2015-09-24 16:06:58

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,944
Website

Re: xinitrc needs to start itself with dbus-launch manually

after this dbus update I needed this in my xinitrc before the exec line

source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh

Last edited by ugjka (2015-09-24 16:08:27)

Offline

#3 2015-09-24 16:50:19

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: xinitrc needs to start itself with dbus-launch manually

If you had simply followed the directions in the wiki when setting up your xinitrc, you would have been using dbus-launch until that update and 50-systemd-user.sh would have been sourced since somewhere around systemd-219 and you wouldn't have had to make any changes.

Last edited by Raynman (2015-09-24 16:51:40)

Offline

#4 2015-09-24 17:08:51

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,944
Website

Re: xinitrc needs to start itself with dbus-launch manually

Edit: nevermind

Last edited by ugjka (2015-09-24 17:18:33)

Offline

Board footer

Powered by FluxBB