aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LDesktopUtils.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-10-31 09:28:48 -0400
committerKen Moore <ken@ixsystems.com>2017-10-31 09:28:48 -0400
commit4d27f401cdef77b5f2e162615ade2b92a57ae68f (patch)
tree4806e82d0f4639ca15ff0841b45d8f0e674e398c /src-qt5/core/libLumina/LDesktopUtils.cpp
parentAdd an upgrade path for moving theme settings from the old format to the new ... (diff)
downloadlumina-4d27f401cdef77b5f2e162615ade2b92a57ae68f.tar.gz
lumina-4d27f401cdef77b5f2e162615ade2b92a57ae68f.tar.bz2
lumina-4d27f401cdef77b5f2e162615ade2b92a57ae68f.zip
Finish up the theme engine migration path (works fine now - after some testing).
Also some random whitespace cleanup
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.cpp')
-rw-r--r--src-qt5/core/libLumina/LDesktopUtils.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp
index db913e1b..f1b3de17 100644
--- a/src-qt5/core/libLumina/LDesktopUtils.cpp
+++ b/src-qt5/core/libLumina/LDesktopUtils.cpp
@@ -509,8 +509,11 @@ bool LDesktopUtils::checkUserFiles(QString lastversion, QString currentversion){
//Lumina 1.3.4 - Migrate theme settings from old format to the new theme engine format
QString themefile = QString(getenv("XDG_CONFIG_HOME"))+"/lthemeengine/lthemeengine.conf";
if(!QFile::exists(themefile)){
+ QDir dir;
+ dir.mkpath(themefile.section("/",0,-2)); //make sure the main directory exists first
//Need to migrate theme settings from the old location to the new one
- QSettings newtheme(themefile);
+ QSettings newtheme(themefile, QSettings::NativeFormat);
+ qDebug() << "Migrating Theme settings:" << newtheme.fileName();
QStringList oldtheme = LUtils::readFile( QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/themesettings.cfg" );
//Find the system install location for the theme engine for use later
QString enginedir = LOS::LuminaShare()+"/../lthemeengine/";
bgstack15