New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lxqt doesn't read the correct settings for multiple XDG_CONFIG_DIRS #349
Comments
Just to mention that I use lxsession, not lxqt-session. However, I think it's the applications themself (or qtxdg, or xdg directories management by qt) which doesn't pick the good directory, the problem seems to be deeper. The session manager does its job by setting correctly the env variable. |
@gilir why use lxsession at this point? |
Why not ? And unless lxqt-session is responsable for loading the settings for all the lxqt components, it's not really the point.
|
FYI, it fails with both lxqt-session and lxsession |
The problem is in liblxqt. It uses QSettings which doesn't use values in XDG_CONFIG_DIR. See the QSettings documentation : http://qt-project.org/doc/qt-5/qsettings.html#locations-where-application-settings-are-stored . Only /etc/xdg is used, and in lxqtsettings.cpp, XdgDirs::configDirs is never used. I see 2 solutions :
|
See also this qt bug : https://bugreports.qt.io/browse/QTBUG-34919 |
To add more information on this, according to : https://github.com/NixOS/nixpkgs/pull/7525/files, QSettings itself has the problem, and the patch "fix" it. |
Have a look on the lxqt/liblxqt#104 ... |
The Qt patches bringing correct support for XDG_CONFIG_DIRS to QSettings were merged (qt/qtbase@ee35fbb, qt/qtbase@4758555). So I'd like to close this. Does anyone insist to leave this issue open? |
Let's close it. |
lxqt always read the settings from /etc/xdg/lxqt, even if others directories are set on XDG_CONFIG_DIRS
For example, on Lubuntu, we have :
XDG_CONFIG_DIRS=/etc/xdg/lubuntu:/etc/xdg/xdg-QLubuntu:/etc/xdg
Custom settings on /etc/xdg/lubuntu/lxqt
lxqt default settings on /etc/xdg/lxqt
On a fresh start, the settings on /etc/xdg/lxqt are set, instead of /etc/xdg/lubuntu/lxqt
One weird note, pcmanfm-qt works, but we have :
XDG_CONFIG_DIRS=/etc/xdg/lubuntu:/etc/xdg/xdg-QLubuntu:/etc/xdg
Custom settings on /etc/xdg/lubuntu/pcmanfm-qt
No default settings on /etc/xdg/pcmanfm-qt
Maybe it's the last directory (with a content) on XDG_CONFIG_DIRS which is set, instead of the first one ?
The text was updated successfully, but these errors were encountered: