diff options
author | Ken Moore <ken@pcbsd.org> | 2015-06-23 14:24:49 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-06-23 14:24:49 -0400 |
commit | c3b62157bdd6a30b4115b192e62d204314fbd6e8 (patch) | |
tree | dea7b83aa3f1c6f6be03a6bbee123031f897f452 /libLumina/LuminaUtils.cpp | |
parent | Adjust/verify all the XDG routines which touch a file based on the desktop na... (diff) | |
download | lumina-c3b62157bdd6a30b4115b192e62d204314fbd6e8.tar.gz lumina-c3b62157bdd6a30b4115b192e62d204314fbd6e8.tar.bz2 lumina-c3b62157bdd6a30b4115b192e62d204314fbd6e8.zip |
Add a new option in luminaDesktop.conf for auto-generating desktop icons/launchers.
Diffstat (limited to 'libLumina/LuminaUtils.cpp')
-rw-r--r-- | libLumina/LuminaUtils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp index f9baac9b..c3f01c8f 100644 --- a/libLumina/LuminaUtils.cpp +++ b/libLumina/LuminaUtils.cpp @@ -343,6 +343,7 @@ void LUtils::LoadSystemDefaults(bool skipOS){ if(tmp[i].startsWith("#") || !tmp[i].contains("=") ){ continue; } QString var = tmp[i].section("=",0,0).toLower().simplified(); QString val = tmp[i].section("=",1,1).section("#",0,0).toLower().simplified(); + QString istrue = (val=="true") ? "true": "false"; //Change in 0.8.5 - use "_" instead of "." within variables names - need backwards compat for a little while if(var.contains(".")){ var.replace(".","_"); } //Now parse the variable and put the value in the proper file @@ -350,6 +351,7 @@ void LUtils::LoadSystemDefaults(bool skipOS){ else if(var=="desktop_backgroundfiles"){ deskset << "background\\filelist="+val; } else if(var=="desktop_backgroundrotateminutes"){ deskset << "background\\minutesToChange="+val; } else if(var=="desktop_plugins"){ deskset << "pluginlist="+val; } + else if(var=="desktop_generate_icons"){ deskset << "generateDesktopIcons="+istrue; } } if(!tmp.isEmpty()){ deskset << ""; } //space between sections |