---------- Forwarded message ----------
From: Sergei Lopatin <magist3r@gmail.com>
Date: 2013/11/4
Subject: Re: [Lxde-list] LXQT_ETC_XDG_DIR and lxsession
To: Julien Lavergne <julien.lavergne@gmail.com>


Please look carefully on comment from this filehttps://github.com/lxde/liblxqt/blob/master/cmake/FindInstallConfigPath.cmake:
# XDG standards expects system-wide configuration files in the /etc/xdg/lxqt location.
# Unfortunately QSettings we are using internally can be overriden in the Qt compilation
# time to use different path for system-wide configs. (for example configure ... -sysconfdir /etc/settings ...)
# This path can be found calling Qt4's qmake:
# qmake -query QT_INSTALL_CONFIGURATION

So,LXQT_ETC_XDG_DIR is needed to properly INSTALL config files, not to LOAD FROM. It's BUILD TIME cmake variable and only used by lxqt-common package. lxqt-panel for example don't use it at all.
So, what is about lxsession? Lxsession don't use QSettings class and because of that have completely no idea about this hell.


2013/11/4 Julien Lavergne <julien.lavergne@gmail.com>
Except that you report that pcmanfm-qt read correctly the settings in /etc/settings .. but it never uses the value of LXQT_ETC_XDG_DIR in its code (try a grep). So, the problem is not really here.

Regards,
Julien Lavergne


2013/11/3 Sergei Lopatin <magist3r@gmail.com>
I think that you completely don't understand this issue.
LXQT_ETC_XDG_DIR is a cmake variable and is set at build time. There is no way that lxsession can read it.
LXQT_ETC_XDG_DIR is set by"qmake -query QT_INSTALL_CONFIGURATION" command. In case of openSUSE this command returns "/etc/settings". And lxqt-common package installs lxsession config files in /etc/settings just because it readsLXQT_ETC_XDG_DIR cmake(!) variable at build time.
Lxsession can respect this in two ways:
1) execute "qmake -query QT_INSTALL_CONFIGURATION" to get right place where to find settings
2) readLXQT_ETC_XDG_DIR cmake variable at build time and compile it in source as define



2013/11/3 Julien Lavergne <julien.lavergne@gmail.com>

2013/10/30 Sergei Lopatin <magist3r@gmail.com>
It's not a lxsession issue I think. LXQT_ETC_XDG_DIR only makes sense for Qt-based applications (https://github.com/lxde/liblxqt/blob/master/cmake/FindInstallConfigPath.cmake).
But lxqt-common package installs all config files (include lxsession) in ${LXQT_ETC_XDG_DIR} (https://github.com/lxde/lxqt-common/blob/master/config/CMakeLists.txt)
Obviously, lxsession don't use QSettings and tries to load settings from /etc/xdg.
As a workaround I suggest to install lxsession config files in /etc/xdg.

Hum, but LXQT_ETC_XDG_DIR is define as an xdg folder, so it should work. I tried to fix it in lxsession git, could you try last revision on git ? If it doesn't work, could you send me the log file so I can investigate more on the issue ?
Thanks.

Regards,
Julien Lavergne



--
, !
e-mail: magist3r@gmail.com




--
, !
e-mail: magist3r@gmail.com



--
, !
e-mail: magist3r@gmail.com