[Pkg-utopia-maintainers] Bug#815503: dbus-x11: Several session buses start

Samuel Thibault sthibault at debian.org
Sun Feb 21 22:50:09 UTC 2016


Package: dbus-x11
Version: 1.8.20-0+deb8u1
Severity: important
User: debian-accessibility at lists.debian.org
Usertag: a11y

Hello,

We have been noticing several dbus-daemon --session being started during
a user session, which creates a mess, notably with accessibility
engines.

Debug shows that this is happening:

- /etc/X11/Xsession.d files are processed:
  - /etc/X11/Xsession.d/75dbus_dbus-launch prepends dbus-launch to
    $STARTUP
  - /etc/X11/Xsession.d/98vboxadd-xclient somehow triggers
    dbus-launch --autostart, and that starts a dbus-daemon --session
- $STARTUP is run
  - dbus-launch starts another dbus-daemon --session

>From then on, depending how the session bus is detected, programs will
find one or the other session bus, and thus the mess...

We have also seen some people run amixer from some
/etc/X11/Xsession.d/91* scripts, and pulseaudio there would also trigger
a dbus-launch --autostart

These autostarts can't really be avoided, so I'd say dbus-launch should
be started by 75dbus_dbus-launch it self, as the attached patch does, so
that scripts after 75 can use that session bus.

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dbus-x11 depends on:
ii  dbus         1.10.6-1
ii  libc6        2.21-8
ii  libdbus-1-3  1.10.6-1
ii  libx11-6     2:1.6.3-1

dbus-x11 recommends no packages.

dbus-x11 suggests no packages.

-- no debconf information
-------------- next part --------------
--- debian/75dbus_dbus-launch.orig	2016-02-21 23:46:03.687722600 +0100
+++ debian/75dbus_dbus-launch	2016-02-21 23:46:40.377537331 +0100
@@ -13,5 +13,5 @@
 fi
 
 if [ -n "$STARTDBUS" ]; then
-  STARTUP="$DBUSLAUNCH --exit-with-session $STARTUP"
+  eval $($DBUSLAUNCH --exit-with-session --sh-syntax)
 fi


More information about the Pkg-utopia-maintainers mailing list