diff options
Diffstat (limited to 'libLumina/LuminaOS-FreeBSD.cpp')
-rw-r--r-- | libLumina/LuminaOS-FreeBSD.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libLumina/LuminaOS-FreeBSD.cpp b/libLumina/LuminaOS-FreeBSD.cpp index 39a82c09..a3dcb91e 100644 --- a/libLumina/LuminaOS-FreeBSD.cpp +++ b/libLumina/LuminaOS-FreeBSD.cpp @@ -42,8 +42,8 @@ QStringList LOS::ExternalDevicePaths(){ int LOS::ScreenBrightness(){ //Returns: Screen Brightness as a percentage (0-100, with -1 for errors) if(screenbrightness==-1){ - if(QFile::exists("/tmp/.lumina-currentxbrightness")){ - int val = LUtils::readFile("/tmp/.lumina-currentxbrightness").join("").simplified().toInt(); + if(QFile::exists(QDir::homePath()+"/.lumina/.currentxbrightness")){ + int val = LUtils::readFile(QDir::homePath()+"/.lumina/.currentxbrightness").join("").simplified().toInt(); screenbrightness = val; } } @@ -63,7 +63,7 @@ void LOS::setScreenBrightness(int percent){ //Save the result for later if(ret!=0){ screenbrightness = -1; } else{ screenbrightness = percent; } - LUtils::writeFile("/tmp/.lumina-currentxbrightness", QStringList() << QString::number(screenbrightness), true); + LUtils::writeFile(QDir::homePath()+"/.lumina/.currentxbrightness", QStringList() << QString::number(screenbrightness), true); } //Read the current volume |