[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#407297: libqt4-core: QSettings uses /etc/qt4 instead of /etc/xdg as global config path



Package: libqt4-core
Version: 4.2.1-2
Severity: normal


Hi,

The QSettings documentation states that the directory /etc/xdg is used
for global configuration files. A strace shows the the Debian package
uses /etc/qt4 for this purpose.

Testcase:
#include <QSettings>

int main()
{
    QSettings s("MyCompany", "MyProduct");
    s.value("blubber");
}

strace output:
stat64("/home/users/jasny/.config/MyCompany/MyProduct.conf", 0x804b574)
lstat64("/home/users/jasny/.config/MyCompany/MyProduct.conf",
stat64("/home/users/jasny/.config/MyCompany", {st_mode=S_IFDIR|0711,
stat64("/home/users/jasny/.config/MyCompany/MyProduct.conf", 0xbff7cb68)
stat64("/home/users/jasny/.config/MyCompany/MyProduct.conf", 0x804b574)
stat64("/home/users/jasny/.config/MyCompany.conf", 0xbff7cb68) = -1
stat64("/home/users/jasny/.config/MyCompany.conf", 0x804b574) = -1
stat64("/etc/qt4/MyCompany/MyProduct.conf", 0xbff7cb68) = -1 ENOENT (No
stat64("/etc/qt4/MyCompany/MyProduct.conf", 0x804b574) = -1 ENOENT (No
stat64("/etc/qt4/MyCompany.conf", 0xbff7cb68) = -1 ENOENT (No such file
stat64("/etc/qt4/MyCompany.conf", 0x804b574) = -1 ENOENT (No such file

It would be great to see this bug fixed before the release of Etch.

Thanks,
Gregor

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.2
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages libqt4-core depends on:
ii  libc6                       2.3.6.ds1-10 GNU C Library: Shared libraries
ii  libdbus-1-3                 1.0.2-1      simple interprocess messaging syst
ii  libfontconfig1              2.4.2-1      generic font configuration library
ii  libgcc1                     1:4.1.1-21   GCC support library
ii  libglib2.0-0                2.12.6-2     The GLib library of C routines
ii  libstdc++6                  4.1.1-21     The GNU Standard C++ Library v3
ii  zlib1g                      1:1.2.3-13   compression library - runtime

libqt4-core recommends no packages.

-- no debconf information



Reply to: