diff options
author | Ken Moore <ken@pcbsd.org> | 2015-04-24 18:55:20 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-04-24 18:55:20 -0400 |
commit | 4e03c0a4f2829d2dc94a902220f74cb7650dc8d6 (patch) | |
tree | eb2e93963aeedf09d88b1ab1c3bd9d6d7cb21f51 /libLumina/LuminaOS-FreeBSD.cpp | |
parent | Before activating the panel on mouse-over, save the ID of the currently activ... (diff) | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-4e03c0a4f2829d2dc94a902220f74cb7650dc8d6.tar.gz lumina-4e03c0a4f2829d2dc94a902220f74cb7650dc8d6.tar.bz2 lumina-4e03c0a4f2829d2dc94a902220f74cb7650dc8d6.zip |
Merge branch 'master' of github.com:pcbsd/lumina
Diffstat (limited to 'libLumina/LuminaOS-FreeBSD.cpp')
-rw-r--r-- | libLumina/LuminaOS-FreeBSD.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libLumina/LuminaOS-FreeBSD.cpp b/libLumina/LuminaOS-FreeBSD.cpp index 39eae307..7ef782d9 100644 --- a/libLumina/LuminaOS-FreeBSD.cpp +++ b/libLumina/LuminaOS-FreeBSD.cpp @@ -22,7 +22,7 @@ QString LOS::SysPrefix(){ return "/usr/"; } //Prefix for system //OS-specific application shortcuts (*.desktop files) QString LOS::ControlPanelShortcut(){ return "/usr/local/share/applications/pccontrol.desktop"; } //system control panel QString LOS::AppStoreShortcut(){ return "/usr/local/share/applications/softmanager.desktop"; } //graphical app/pkg manager -QString LOS::QtConfigShortcut(){ return "/usr/local/bin/qtconfig-qt4"; } //qtconfig binary (NOT *.desktop file) +QString LOS::QtConfigShortcut(){ return ""; } //qtconfig binary (NOT *.desktop file) // ==== ExternalDevicePaths() ==== QStringList LOS::ExternalDevicePaths(){ @@ -58,6 +58,7 @@ int LOS::ScreenBrightness(){ //Make sure we are not running in VirtualBox (does not work in a VM) QStringList info = LUtils::getCmdOutput("pciconf -lv"); if( !info.filter("VirtualBox", Qt::CaseInsensitive).isEmpty() ){ return -1; } + else if( !LUtils::isValidBinary("xbrightness") ){ return -1; } //incomplete install //Now perform the standard brightness checks if(screenbrightness==-1){ //memory value if(QFile::exists(QDir::homePath()+"/.lumina/.currentxbrightness")){ //saved file value @@ -70,6 +71,7 @@ int LOS::ScreenBrightness(){ //Set screen brightness void LOS::setScreenBrightness(int percent){ + if(percent == -1){ return; } //This is usually an invalid value passed directly to the setter //ensure bounds if(percent<0){percent=0;} else if(percent>100){ percent=100; } |