Debian Bug report logs - #480223
dbus-x11: allow for session.conf in user home directory

version graph

Package: dbus-x11; Maintainer for dbus-x11 is Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>; Source for dbus-x11 is src:dbus.

Reported by: Ludovico Gardenghi <garden@acheronte.it>

Date: Thu, 8 May 2008 20:00:01 UTC

Severity: wishlist

Tags: patch

Found in version dbus/1.2.1-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#480223; Package dbus-x11. Full text and rfc822 format available.

Acknowledgement sent to Ludovico Gardenghi <garden@acheronte.it>:
New Bug report received and forwarded. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Ludovico Gardenghi <garden@acheronte.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dbus-x11: allow for session.conf in user home directory
Date: Thu, 8 May 2008 21:58:11 +0200
[Message part 1 (text/plain, inline)]
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
-- 
<garden@acheronte.it>        #acheronte (irc.freenode.net) ICQ: 64483080
GPG ID: 07F89BB8          Jabber: gardengl@gmail.com Yahoo: gardenghelle
-- This is signature nr. 3945
[75dbus_dbus-launch.diff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#480223; Package dbus-x11. Full text and rfc822 format available.

Acknowledgement sent to Michael Biebl <biebl@debian.org>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #10 received at 480223@bugs.debian.org (full text, mbox):

From: Michael Biebl <biebl@debian.org>
To: Ludovico Gardenghi <garden@acheronte.it>, 480223@bugs.debian.org
Subject: Re: [Pkg-utopia-maintainers] Bug#480223: dbus-x11: allow for session.conf in user home directory
Date: Thu, 08 May 2008 22:31:05 +0200
[Message part 1 (text/plain, inline)]
Ludovico Gardenghi wrote:
> 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

Curious, what custom options do you need to pass to dbus-launch?


Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#480223; Package dbus-x11. Full text and rfc822 format available.

Acknowledgement sent to Ludovico Gardenghi <garden@acheronte.it>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #15 received at 480223@bugs.debian.org (full text, mbox):

From: Ludovico Gardenghi <garden@acheronte.it>
To: Michael Biebl <biebl@debian.org>
Cc: 480223@bugs.debian.org
Subject: Re: [Pkg-utopia-maintainers] Bug#480223: dbus-x11: allow for session.conf in user home directory
Date: Thu, 8 May 2008 23:01:57 +0200
[I forgot the Cc:, sorry Michael for the double mail]

On Thu, May 08, 2008 at 10:31:05PM +0200, Michael Biebl wrote:

> Curious, what custom options do you need to pass to dbus-launch?

I need a custom session.conf file (so I pass --config-file=...) because
I want one of the users to have his session dbus listen on a TCP port in
addition to the regular BSD socket.

I agree this does not happen every day... :-) Maybe it's not frequent
enough for justifying a change, though it seems quite a harmless and
easy one.

Ludovico
-- 
<garden@acheronte.it>        #acheronte (irc.freenode.net) ICQ: 64483080
GPG ID: 07F89BB8          Jabber: gardengl@gmail.com Yahoo: gardenghelle
-- This is signature nr. 3946




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#480223; Package dbus-x11. Full text and rfc822 format available.

Acknowledgement sent to Loïc Minier <lool@dooz.org>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #20 received at 480223@bugs.debian.org (full text, mbox):

From: Loïc Minier <lool@dooz.org>
To: Ludovico Gardenghi <garden@acheronte.it>, 480223@bugs.debian.org
Cc: Michael Biebl <biebl@debian.org>
Subject: Re: [Pkg-utopia-maintainers] Bug#480223: Bug#480223: dbus-x11: allow for session.conf in user home directory
Date: Sun, 11 May 2008 00:46:58 +0200
On Thu, May 08, 2008, Ludovico Gardenghi wrote:
> I agree this does not happen every day... :-) Maybe it's not frequent
> enough for justifying a change, though it seems quite a harmless and
> easy one.

 Perhaps you could simply disable the default dbus-launch invocation by
 removing use-session-dbus and then add a custom invocation?

-- 
Loïc Minier




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#480223; Package dbus-x11. Full text and rfc822 format available.

Acknowledgement sent to Ludovico Gardenghi <garden@acheronte.it>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #25 received at 480223@bugs.debian.org (full text, mbox):

From: Ludovico Gardenghi <garden@acheronte.it>
To: Loïc Minier <lool@dooz.org>
Cc: 480223@bugs.debian.org, Michael Biebl <biebl@debian.org>
Subject: Re: [Pkg-utopia-maintainers] Bug#480223: Bug#480223: dbus-x11: allow for session.conf in user home directory
Date: Sun, 11 May 2008 18:43:46 +0200
On Sun, May 11, 2008 at 12:46:58AM +0200, Loïc Minier wrote:

>  Perhaps you could simply disable the default dbus-launch invocation by
>  removing use-session-dbus and then add a custom invocation?

You propose that a user may add a redefinition of OPTIONFILE inside his
.xsessionrc (that is sourced in 40x11-common_xsessionrc) along with a
custom dbus-launch, so when 75dbus_dbus-launch runs it looks inside a
custom OPTIONFILE, does not find the line use-session-dbus and does not
start dbus.

This could work, but it assumes that the xsessionrc file is sourced
before the dbus invocation (I'm not an expert, is this a safe
assumption?). Moreover it forces the user to change the OPTIONFILE
variable (ok, he may create a on-the-fly copy of the system file
stripping the dbus line just before changing the OPTIONFILE). It works,
though it's not very elegant.

I believe that the correct solution would be an upstream change in dbus:
IMHO --session should really check for a user session.conf before using
the system one.

Ludovico
-- 
<garden@acheronte.it>        #acheronte (irc.freenode.net) ICQ: 64483080
GPG ID: 07F89BB8          Jabber: gardengl@gmail.com Yahoo: gardenghelle
-- This is signature nr. 3949




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 25 07:53:34 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.