aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorOle-André Rodlie <ole.andre.rodlie@gmail.com>2018-05-11 00:07:58 +0200
committerOle-André Rodlie <ole.andre.rodlie@gmail.com>2018-05-11 00:07:58 +0200
commit3ed22798c7fd4636f7e695688fe869cfd6c31610 (patch)
tree7cbe1a54a550feee2f042ef57e07224ddddeb57e /src-qt5/core
parentFix the view-presentation icon in lumina-pdf (diff)
downloadlumina-3ed22798c7fd4636f7e695688fe869cfd6c31610.tar.gz
lumina-3ed22798c7fd4636f7e695688fe869cfd6c31610.tar.bz2
lumina-3ed22798c7fd4636f7e695688fe869cfd6c31610.zip
OS: Support suspend on Slackware
Diffstat (limited to 'src-qt5/core')
-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