From 3b55e80a6b742be1bd6c6a7c4e89bb14007776c2 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 28 May 2015 11:11:14 -0400 Subject: Add new options to the system-wide settings configuration file: favorites.add: add an entry into the favorites system for a file/dir favorites.remove: remove an entry from the favorites system for a file/dir (for backwards compat later if necessary) favorites.add.ifexists: add an entry but only if the file/dir currently exists --- libLumina/LuminaUtils.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'libLumina/LuminaUtils.cpp') diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp index 61194f10..776b73ed 100644 --- a/libLumina/LuminaUtils.cpp +++ b/libLumina/LuminaUtils.cpp @@ -321,6 +321,7 @@ void LUtils::LoadSystemDefaults(bool skipOS){ else if(var=="desktop.plugins"){ deskset << "pluginlist="+val; } } if(!tmp.isEmpty()){ deskset << ""; } //space between sections + //Now do any panel1 settings (only works for the primary desktop at the moment) tmp = sysDefaults.filter("panel1."); if(!tmp.isEmpty()){deskset << "[panel"+screen+".0]"; } @@ -342,6 +343,7 @@ void LUtils::LoadSystemDefaults(bool skipOS){ else if(var=="panel1.plugins"){ deskset << "pluginlist="+val; } } if(!tmp.isEmpty()){ deskset << ""; } //space between sections + //Now do any panel2 settings (only works for the primary desktop at the moment) tmp = sysDefaults.filter("panel2."); if(!tmp.isEmpty()){deskset << "[panel"+screen+".1]"; } @@ -361,6 +363,7 @@ void LUtils::LoadSystemDefaults(bool skipOS){ else if(var=="panel2.plugins"){ deskset << "pluginlist="+val; } } if(!tmp.isEmpty()){ deskset << ""; } //space between sections + //Now do any menu settings tmp = sysDefaults.filter("menu."); if(!tmp.isEmpty()){deskset << "[menu]"; } @@ -372,6 +375,20 @@ void LUtils::LoadSystemDefaults(bool skipOS){ if(var=="menu.plugins"){ deskset << "itemlist="+val; } } if(!tmp.isEmpty()){ deskset << ""; } //space between sections + + //Now do any custom favorites + tmp = sysDefaults.filter("favorites."); + if(!tmp.isEmpty()){deskset << "[menu]"; } + for(int i=0; i