diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-08 16:04:22 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-08 16:04:22 -0400 |
commit | f7b0433c718fb55d73cdd64d11bb09c0d5c12210 (patch) | |
tree | 3aff72fc81e9f67d9bfbf83aa9f9598caee58da3 | |
parent | Make sure that when loading thumbnails, it only runs processEvents every 3 it... (diff) | |
download | lumina-f7b0433c718fb55d73cdd64d11bb09c0d5c12210.tar.gz lumina-f7b0433c718fb55d73cdd64d11bb09c0d5c12210.tar.bz2 lumina-f7b0433c718fb55d73cdd64d11bb09c0d5c12210.zip |
Add the conversion rule for 0.8.7-devel (or older) to 0.8.7-release to automatically update the panel plugins (systemdashboard removed, appmenu/userbutton->systemstart)
-rw-r--r-- | lumina-desktop/LSession.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp index a1caf715..5e344c82 100644 --- a/lumina-desktop/LSession.cpp +++ b/lumina-desktop/LSession.cpp @@ -387,8 +387,21 @@ void LSession::checkUserFiles(){ if(newversion || newrelease){ LUtils::upgradeFavorites(oldversion); } - //Remove/convert any old desktop plugin files (Change occured with 0.8.5) - // - TO-DO + //Convert any "userbutton" and "appmenu" panel plugins to the new "systemstart" plugin (0.8.7) + if(oldversion <= 8007 && (newversion || newrelease)){ + QSettings dset(QSettings::UserScope, "LuminaDE","desktopsettings", this); + QStringList plugKeys = dset.allKeys().filter("panel").filter("/pluginlist"); + for(int i=0; i<plugKeys.length(); i++){ + QStringList plugs = dset.value(plugKeys[i],QStringList()).toStringList(); + //Do the appmenu/userbutton -> systemstart conversion + plugs = plugs.join(";;;;").replace("userbutton","systemstart").replace("appmenu","systemstart").split(";;;;"); + //Remove any system dashboard plugins + plugs.removeAll("systemdashboard"); + //Now save that back to the file + dset.setValue(plugKeys[i], plugs); + } + dset.sync(); + } //Convert to the XDG autostart spec as necessary (Change occured with 0.8.5) if(QFile::exists(QDir::homePath()+"/.lumina/startapps") ){ |