aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LDesktopUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.cpp')
-rw-r--r--src-qt5/core/libLumina/LDesktopUtils.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp
index 79151273..7c10cc96 100644
--- a/src-qt5/core/libLumina/LDesktopUtils.cpp
+++ b/src-qt5/core/libLumina/LDesktopUtils.cpp
@@ -408,6 +408,15 @@ void LDesktopUtils::LoadSystemDefaults(bool skipOS){
if(val.endsWith("%")){ val = QString::number( (screenGeom.height()*val.section("%",0,0).toDouble())/100 )+"px"; }
themesettings[4] = val;
}
+ else if(var=="theme_fluxbox"){
+ QString fbinit = QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/fluxbox-init";
+ QStringList contents = LUtils::readFile(fbinit);
+ int index = contents.indexOf( contents.filter("session.styleFile:").join("") );
+ QString line = "session.styleFile:\t"+val;
+ if(index>=0){ contents[index] = line; }
+ else{ contents << line; }
+ LUtils::writeFile(fbinit, contents, true);
+ }
}
//qDebug() << " - Now Color:" << themesettings[1] << setTheme;
bgstack15