aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-16 14:49:59 -0400
committerKen Moore <moorekou@gmail.com>2015-10-16 14:49:59 -0400
commitaf742de80c460e981037858b69829b503bbdedbe (patch)
tree149f66ca4a26efa0946f70cb7d2cfb8e39efa43a /lumina-desktop/LSession.cpp
parentChange some text on the "system monitor" desktop plugin: "Disk Usage" -> "Dis... (diff)
downloadlumina-af742de80c460e981037858b69829b503bbdedbe.tar.gz
lumina-af742de80c460e981037858b69829b503bbdedbe.tar.bz2
lumina-af742de80c460e981037858b69829b503bbdedbe.zip
Convert the grid used for the desktop plugin system a little bit:
1) The "IconSize" used is the total size for a desktop item (width & height), rather than the actual size of the icon. 2) Change the saved value in the settings file to "GridSize" instead of IconSize. 3) Make the entire grid relate to this item size - ensuring grid alignment for both desktop items and desktop plugins. 4) Make sure to treat any manual "applauncher" plugins as desktop items for sizing/update purposes. 5) Save the plugin geometries in pixel coordinates instead of grid coordinates to accomodate for flexible grid sizes now. 6) Add another update rule for 0.8.6->0.8.7 (including 0.8.7-devel->0.8.7-release) which removed all the old saved desktop plugin geometries (since they are in the wrong coordinate system). This is a minor change because the update to 0.8.7 was already going to change all the plugins anyway.
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 145ac992..cd78cce2 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -414,6 +414,10 @@ void LSession::checkUserFiles(){
}
}
dset.sync();
+ //Due to the grid size change for desktop plugins, need to remove any old plugin geometries
+ if(QFile::exists(QDir::homePath()+"/.lumina/pluginsettings/desktopsettings.conf")){
+ QFile::remove(QDir::homePath()+"/.lumina/pluginsettings/desktopsettings.conf");
+ }
}
//Convert to the XDG autostart spec as necessary (Change occured with 0.8.5)
bgstack15