From 2c3df0c30e558aae197ccb7eecaa77ecdcecceb4 Mon Sep 17 00:00:00 2001
From: Maximilian Gerhard <maxbox@directbox.com>
Date: Sat, 23 Jun 2012 22:37:59 +0200
Subject: better QSettings usage to find correct config

Changed usage of QSettings here. It will use now the internal
fallback mechanism to find configuration files. It will respect
user and system-wide configuration, where user defined settings
have higher priority than system-wide. (see
http://qt-project.org/doc/qt-4.8/qsettings.html for more details)
---
 lxdesupport.cpp | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/lxdesupport.cpp b/lxdesupport.cpp
index 859c420..4a1c825 100644
--- a/lxdesupport.cpp
+++ b/lxdesupport.cpp
@@ -28,12 +28,7 @@ void LXDESupport::load()
     if(qgetenv("XDG_CURRENT_DESKTOP") != "LXDE")
         return;
 
-    QString conf_path = qgetenv("XDG_CONFIG_HOME");
-    if(conf_path.isEmpty())
-        conf_path = QDir::homePath() + "/.config";
-    conf_path.append("/lxsession/LXDE/desktop.conf");
-
-    QSettings lxde_settings(conf_path, QSettings::IniFormat);
+    QSettings lxde_settings("lxsession/LXDE", "desktop");
     QString themeName = lxde_settings.value("GTK/sNet/IconThemeName").toString();
     if(!themeName.isEmpty())
         QIcon::setThemeName(themeName);
-- 
cgit v1.0