diff options
author | Ken Moore <moorekou@gmail.com> | 2016-06-14 13:21:29 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-06-14 13:21:29 -0400 |
commit | f6bb0b0e52214a7235cc64dc7a52fb4fbaa61a3c (patch) | |
tree | 1a045f6368ad50ecb5118f95f3e377ec3226ff75 /src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp | |
parent | Large update to the project files: (diff) | |
download | lumina-f6bb0b0e52214a7235cc64dc7a52fb4fbaa61a3c.tar.gz lumina-f6bb0b0e52214a7235cc64dc7a52fb4fbaa61a3c.tar.bz2 lumina-f6bb0b0e52214a7235cc64dc7a52fb4fbaa61a3c.zip |
Another large batch of updates:
1) Move the "runtime" directory in the users home to the XDG_CONFIG_HOME/lumina-desktop rather than ~/.lumina
2) Update the Glass theme a bit more.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp b/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp index 30a02078..0d04b52d 100644 --- a/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-OpenBSD.cpp @@ -61,8 +61,8 @@ int LOS::ScreenBrightness(){ if( !info.filter(QRegExp("VirtualBox|KVM")).isEmpty() ){ return -1; } //Now perform the standard brightness checks if(screenbrightness==-1){ - if(QFile::exists(QDir::homePath()+"/.lumina/.currentxbrightness")){ - int val = LUtils::readFile(QDir::homePath()+"/.lumina/.currentxbrightness").join("").simplified().toInt(); + if(QFile::exists(QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/.currentxbrightness")){ + int val = LUtils::readFile(QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/.currentxbrightness").join("").simplified().toInt(); screenbrightness = val; } } @@ -81,7 +81,7 @@ void LOS::setScreenBrightness(int percent){ //Save the result for later if(ret!=0){ screenbrightness = -1; } else{ screenbrightness = percent; } - LUtils::writeFile(QDir::homePath()+"/.lumina/.currentxbrightness", QStringList() << QString::number(screenbrightness), true); + LUtils::writeFile(QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/.currentxbrightness", QStringList() << QString::number(screenbrightness), true); } //Read the current volume |