diff options
author | Ken Moore <ken@ixsystems.com> | 2017-10-16 11:54:07 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-10-16 11:54:07 -0400 |
commit | e152255ec8e2bb7c0604fbbe569d47f345678ea6 (patch) | |
tree | 4d723758dda3fab2e44f45efe5a8709c0dc8e060 /src-qt5/core/libLumina/LDesktopUtils.cpp | |
parent | Update the backend process-running routine for Lumina (LUtils) (diff) | |
download | lumina-e152255ec8e2bb7c0604fbbe569d47f345678ea6.tar.gz lumina-e152255ec8e2bb7c0604fbbe569d47f345678ea6.tar.bz2 lumina-e152255ec8e2bb7c0604fbbe569d47f345678ea6.zip |
Clean up the session file-init routine.
Now the user files are scanned/created from within the start-lumina-desktop process, not the desktop process. This fixes the loading of the theme engine for the desktop process on first-run situations, and also ensures that the desktop process does not need to make any major changes to it's configs while it is still running.
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LDesktopUtils.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp index fb13a2a3..c65f6faf 100644 --- a/src-qt5/core/libLumina/LDesktopUtils.cpp +++ b/src-qt5/core/libLumina/LDesktopUtils.cpp @@ -483,10 +483,7 @@ bool LDesktopUtils::checkUserFiles(QString lastversion, QString currentversion){ //Convert from the old desktop numbering system to the new one (change occured with 1.0.1) if(oldversion<=1000001){ QStringList DS = LUtils::readFile(dset); - char *tmp; - int tmpN = 0; - QApplication A(tmpN, &tmp); - QList<QScreen*> screens = A.screens(); + QList<QScreen*> screens = QApplication::screens(); for(int i=0; i<DS.length(); i++){ if(!DS[i].startsWith("[")){ continue; } if(DS[i].startsWith("[desktop-")){ |