Package: dbus-x11 Version: 1.2.1-2 Severity: wishlist Tags: patch The current mechanism for launching dbus at the beginning of a X session makes it difficult for a user to specify a custom config file. He may add a dbus-launch with custom options to the .xsessionrc file but /etc/X11/Xsession.d/75dbus_dbus-launch adds another dbus-launch to STARTUP without checking anything.
I added a check in this file (patch attached) that passes dbus-launch the --config-file= option if it finds a ~/dbus/session.conf file. This way, users can simply create a custom version of the session.conf file and have it loaded at X startup. I understand this is a partial fix: it would be nicer to change dbus so to make it check for a ~/.dbus/session.conf file by default when starting with --session. Lots of programs check for a ~/.somethingrc file before looking in /etc/somethingrc. IMHO dbus-daemon should do the same. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-ripieno (PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dbus-x11 depends on: ii dbus 1.2.1-2 simple interprocess messaging syst ii libc6 2.7-10 GNU C Library: Shared libraries ii libx11-6 2:1.0.3-7 X11 client-side library dbus-x11 recommends no packages. -- no debconf information Ludovico -- <[EMAIL PROTECTED]> #acheronte (irc.freenode.net) ICQ: 64483080 GPG ID: 07F89BB8 Jabber: [EMAIL PROTECTED] Yahoo: gardenghelle -- This is signature nr. 3945
--- 75dbus_dbus-launch.orig 2008-04-26 13:12:00.000000000 +0200 +++ 75dbus_dbus-launch 2008-05-08 19:47:07.295064128 +0200 @@ -5,6 +5,7 @@ STARTDBUS= DBUSLAUNCH=/usr/bin/dbus-launch +DBUSOPTS= if grep -qs ^use-session-dbus "$OPTIONFILE"; then if [ -x "$DBUSLAUNCH" ]; then @@ -12,6 +13,14 @@ fi fi +# If the user has a .dbus/session.conf in its home directory then use it +# instead of the default session file. -- <[EMAIL PROTECTED]> 20080508 + +DBUSUSERSESSIONCONF=$HOME/.dbus/session.conf +if [ -f "$DBUSUSERSESSIONCONF" ]; then + DBUSOPTS="--config-file=$DBUSUSERSESSIONCONF" +fi + if [ -n "$STARTDBUS" ]; then - STARTUP="$DBUSLAUNCH --exit-with-session $STARTUP" + STARTUP="$DBUSLAUNCH $DBUSOPTS --exit-with-session $STARTUP" fi