[Bug 726471] Re: dbus de-prioritizes XDG_DATA_HOME -- can't customize user session

Román 726471 at bugs.launchpad.net
Fri Dec 16 16:40:09 UTC 2011


Are there any possibilities to backport the fix to the LTS distribution
(Lucid Lynx)?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dbus in Ubuntu.
https://bugs.launchpad.net/bugs/726471

Title:
  dbus de-prioritizes XDG_DATA_HOME -- can't customize user session

Status in D-Bus:
  Fix Released
Status in “dbus” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: dbus

  I tried to over-ride
  /usr/share/dbus-1/services/org.gnome.ScreenSaver.service by creating a
  ~/.local/share/dbus-1/services/org.gnome.ScreenSaver.service file
  (because gnome-screensaver runs even when xscreensaver is active).
  This file gets ignored. If I put the file in /usr/local/share/..., it
  overrides the default as expected.

  The XDG Base Directory Specification clearly states in

  http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

  "The base directory defined by $XDG_DATA_HOME is considered more
  important than any of the base directories defined by $XDG_DATA_DIRS.
  The base directory defined by $XDG_CONFIG_HOME is considered more
  important than any of the base directories defined by
  $XDG_CONFIG_DIRS."

  Yet the relevant source code in dbus looks like (dbus/dbus-sysdeps-
  unix.c):

    if (!_dbus_string_append (&servicedir_path, DBUS_DATADIR":"))
          goto oom;
  /* ... */
        if (!_dbus_string_append (&servicedir_path, xdg_data_home))
          goto oom;

  i.e. XDG_DATA_HOME is used AFTER XDG_DATA_DIRS

  This is a very serious issue that prevents the user from overriding
  misguided system-wide configuration.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: dbus 1.2.16-2ubuntu4.1
  ProcVersionSignature: Ubuntu 2.6.31-11.154-rt
  Uname: Linux 2.6.31-11-rt i686
  Architecture: i386
  Date: Mon Feb 28 12:23:48 2011
  InstallationMedia: Xubuntu 10.04 "Lucid Lynx" - Release i386 (20100429)
  ProcEnviron:
   LC_COLLATE=C
   PATH=(custom, user)
   LANG=en_US.utf8
   SHELL=/bin/bash
  SourcePackage: dbus

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/726471/+subscriptions




More information about the foundations-bugs mailing list