aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina
diff options
context:
space:
mode:
authorMartijn Rijkeboer <mrr@sru-systems.com>2017-03-31 12:55:01 +0200
committerMartijn Rijkeboer <mrr@sru-systems.com>2017-03-31 12:55:01 +0200
commit5080c6c58d166c11272f1e8f3473869f24222131 (patch)
treea7f863649370f4d5861534102e3b8e17ea39f5f0 /src-qt5/core/libLumina
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-5080c6c58d166c11272f1e8f3473869f24222131.tar.gz
lumina-5080c6c58d166c11272f1e8f3473869f24222131.tar.bz2
lumina-5080c6c58d166c11272f1e8f3473869f24222131.zip
Fix dbus-send calls for Gentoo.
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r--src-qt5/core/libLumina/LuminaOS-Gentoo.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp b/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp
index 40163aab..7d8c3724 100644
--- a/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp
+++ b/src-qt5/core/libLumina/LuminaOS-Gentoo.cpp
@@ -143,8 +143,8 @@ void LOS::startMixerUtility(){
//Check for user system permission (shutdown/restart)
bool LOS::userHasShutdownAccess(){
return QProcess::startDetached("dbus-send --system --print-reply=literal \
- --type=method_call --dest=org.freedesktop.login1 \
- /org/freedesktop/login1 org.freedesktop.login1.Manager.CanPowerOff");
+ --type=method_call --dest=org.freedesktop.ConsoleKit \
+ /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.CanPowerOff");
}
//Check for whether the system is safe to power off (no updates being perfomed)
@@ -161,30 +161,30 @@ QString LOS::systemPendingUpdates(){
void LOS::systemShutdown(bool){ //start poweroff sequence
//INPUT: skip updates (true/false)
QProcess::startDetached("dbus-send --system --print-reply \
- --dest=org.freedesktop.login1 /org/freedesktop/login1 \
- org.freedesktop.login1.Manager.PowerOff boolean:true");
+ --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager \
+ org.freedesktop.ConsoleKit.Manager.PowerOff boolean:true");
}
//System Restart
void LOS::systemRestart(bool){ //start reboot sequence
//INPUT: skip updates (true/false)
QProcess::startDetached("dbus-send --system --print-reply \
- --dest=org.freedesktop.login1 /org/freedesktop/login1 \
- org.freedesktop.login1.Manager.Reboot boolean:true");
+ --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager \
+ org.freedesktop.ConsoleKit.Manager.Reboot boolean:true");
}
//Check for suspend support
bool LOS::systemCanSuspend(){
return QProcess::startDetached("dbus-send --system --print-reply=literal \
- --type=method_call --dest=org.freedesktop.login1 \
- /org/freedesktop/login1 org.freedesktop.login1.Manager.CanSuspend");
+ --type=method_call --dest=org.freedesktop.ConsoleKit \
+ /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.CanSuspend");
}
//Put the system into the suspend state
void LOS::systemSuspend(){
QProcess::startDetached("dbus-send --system --print-reply \
- --dest=org.freedesktop.login1 /org/freedesktop/login1 \
- org.freedesktop.login1.Manager.Suspend boolean:true");
+ --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager \
+ org.freedesktop.ConsoleKit.Manager.Suspend boolean:true");
}
//Battery Availability
bgstack15