[Pkg-ime-devel] Bug#835913: ibus: please use dbus-run-session to set up dconf overrides

Simon McVittie smcv at debian.org
Mon Aug 29 09:07:40 UTC 2016

Source: ibus
Version: 1.5.11-1
Severity: normal
Tags: upstream
User: dbus at packages.debian.org
Usertags: dbus-launch dbus-launch-for-infra

As described in <https://lists.debian.org/debian-devel/2016/08/msg00554.html>
I'm trying to reduce how much dbus-launch is used in Debian.
This package currently uses dbus-launch to run some infrastructure bits.

In this case it looks as though it would be simple to replace with
dbus-run-session. Pseudo-patch is something like this:

    # data/dconf/Makefile.am

     00-upstream-settings: $(srcdir)/make-dconf-override-db.sh | $(gsettings_SCHEMAS)
             @$(MKDIR_P) db
    -        $(AM_V_GEN) $(srcdir)/make-dconf-override-db.sh > $@ || \
    -                { rc=$$?; $(RM) -rf $@; exit $$rc; }
    +        $(AM_V_GEN) dbus-run-session -- $(srcdir)/make-dconf-override-db.sh > $@ || \
    +                { rc=$$?; $(RM) -rf $@; exit $$rc; }

    # data/dconf/make-dconf-override-db.sh

    -eval `dbus-launch --sh-syntax`
    -trap 'rm -rf $TMPDIR; kill $DBUS_SESSION_BUS_PID' ERR
    +trap 'rm -rf $TMPDIR' ERR

and a dependency on dbus (>= 1.8).

Alternatively, if upstream are for some reason still interested in
supporting obsolete versions of dbus, the script could use dbus-daemon
directly, similar to this Flatpak commit:


More information about the Pkg-ime-devel mailing list