aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-05-21 12:17:00 -0400
committerGitHub <noreply@github.com>2018-05-21 12:17:00 -0400
commitfe0c02f909b6e35ea6be796166fa4c4bf5160014 (patch)
treedae0d0735d04b433aae6467722f22af7639c1c10 /src-qt5/core/libLumina
parentMerge pull request #584 from rodlie/media (diff)
parentOS: Support suspend on Slackware (diff)
downloadlumina-fe0c02f909b6e35ea6be796166fa4c4bf5160014.tar.gz
lumina-fe0c02f909b6e35ea6be796166fa4c4bf5160014.tar.bz2
lumina-fe0c02f909b6e35ea6be796166fa4c4bf5160014.zip
Merge pull request #583 from rodlie/slackware
OS: Support suspend on Slackware
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r--src-qt5/core/libLumina/LuminaOS-Slackware.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/LuminaOS-Slackware.cpp b/src-qt5/core/libLumina/LuminaOS-Slackware.cpp
index 5e2c6561..91085bbd 100644
--- a/src-qt5/core/libLumina/LuminaOS-Slackware.cpp
+++ b/src-qt5/core/libLumina/LuminaOS-Slackware.cpp
@@ -163,12 +163,12 @@ void LOS::systemRestart(bool){ //start reboot sequence
//Check for suspend support
bool LOS::systemCanSuspend(){
- return false;
+ return true;
}
//Put the system into the suspend state
void LOS::systemSuspend(){
-
+ QProcess::startDetached("dbus-send --system --print-reply=literal --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend");
}
//Battery Availability
bgstack15