Bug#647313: xdg-user-dirs-update uses incorrect config file paths

Sascha Silbe sascha-debian-bugs-xdg-user-dirs-2011-11-01 at silbe.org
Tue Nov 1 19:48:08 UTC 2011


Package: xdg-user-dirs
Version: 0.14-1
Severity: important

Dear Maintainer,

xdg-user-dirs-update tries to load the system-wide configuration files
from /etc, rather than from /etc/xdg where they have been installed by
the package:

(wheezy-jhbuild)sascha.silbe at twin:~$ strace -f -s 256 xdg-user-dirs-update
[...]
stat("/home/sascha.silbe/.config/user-dirs.conf", 0x7fffb17b9f10) = -1 ENOENT (No such file or directory)
stat("/home/sascha.silbe/sugar-jhbuild/install/etc/xdg/user-dirs.conf", 0x7fffb17b9f10) = -1 ENOENT (No such file or directory)
stat("/etc/user-dirs.conf", 0x7fffb17b9f10) = -1 ENOENT (No such file or directory)
stat("/home/sascha.silbe/.config/user-dirs.defaults", 0x7fffb17b9cd0) = -1 ENOENT (No such file or directory)
stat("/home/sascha.silbe/sugar-jhbuild/install/etc/xdg/user-dirs.defaults", 0x7fffb17b9cd0) = -1 ENOENT (No such file or directory)
stat("/etc/user-dirs.defaults", 0x7fffb17b9cd0) = -1 ENOENT (No such file or directory)
write(2, "No default user directories\n", 28) = 28
[...]
(wheezy-jhbuild)sascha.silbe at twin:~$ ls -l /etc/xdg/user-dirs.*
-rw-r--r-- 1 root root 414 Jul 30 17:00 /etc/xdg/user-dirs.conf
-rw-r--r-- 1 root root 418 Jul 30 17:00 /etc/xdg/user-dirs.defaults
(wheezy-jhbuild)sascha.silbe at twin:~$


This renders xdg-user-dir unusable on systems without pre-existing user
configuration files or manual intervention by the user (like setting up
symlinks in /etc that point to the correct locations).


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xdg-user-dirs depends on:
ii  libc6  2.13-21

xdg-user-dirs recommends no packages.

xdg-user-dirs suggests no packages.

-- no debconf information






More information about the pkg-gnome-maintainers mailing list