Use LXQT_DATA_DIR for fallback icon theme search path
authorLuís Pereira <luis.artur.pereira@gmail.com>
Fri, 22 Apr 2016 10:15:22 +0000 (11:15 +0100)
committerLuís Pereira <luis.artur.pereira@gmail.com>
Fri, 22 Apr 2016 10:15:22 +0000 (11:15 +0100)
Drop hardcoded path.

lxqtsettings.cpp

index 9abdb46..13af7e7 100644 (file)
@@ -666,7 +666,7 @@ GlobalSettings::GlobalSettings():
     {
         const QString fallback(QLatin1String("oxygen"));
 
-        QDir dir("/usr/share/icons/");
+        const QDir dir(QLatin1String(LXQT_DATA_DIR) + QLatin1String("/icons"));
         if (dir.exists(fallback))
         {
             setValue("icon_theme", fallback);