From 05015e34e7ff3df2515a5a72323d04b560716088 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 21 Jun 2016 08:39:28 -0400 Subject: Add support for running generic user setup scripts/tools after parsing luminaDesktop.conf. --- src-qt5/core/libLumina/LuminaUtils.cpp | 18 +++++++++++++++++- .../core/lumina-desktop/defaults/luminaDesktop.conf | 5 +++++ 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'src-qt5') diff --git a/src-qt5/core/libLumina/LuminaUtils.cpp b/src-qt5/core/libLumina/LuminaUtils.cpp index 4e6dfdf6..72b451ab 100644 --- a/src-qt5/core/libLumina/LuminaUtils.cpp +++ b/src-qt5/core/libLumina/LuminaUtils.cpp @@ -851,7 +851,23 @@ void LUtils::LoadSystemDefaults(bool skipOS){ if(setTheme){ LTHEME::setCurrentSettings( themesettings[0], themesettings[1], themesettings[2], themesettings[3], themesettings[4]); } LUtils::writeFile(setdir+"/sessionsettings.conf", sesset, true); LUtils::writeFile(setdir+"/desktopsettings.conf", deskset, true); - //LUtils::writeFile(setdir+"/lumina-open.conf", lopenset, true); + + //Now run any extra config scripts or utilities as needed + tmp = sysDefaults.filter("usersetup_run"); + if(tmp.isEmpty()){ tmp = sysDefaults.filter("usersetup.run"); } + for(int i=0; i #Create a quicklaunch shortcut for this file/dir #quicklaunch_add_ifexists= #Create a quicklaunch shortcut for this file/dir if the file/dir exists + +#Generic scripts/utilities to run for any additional setup procedures +# These are always run after all other settings are saved +#Format: usersetup_run= +usersetup_run=xdg-user-dirs-update -- cgit