diff options
author | Ken Moore <ken@ixsystems.com> | 2017-03-31 12:33:50 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-03-31 12:33:50 -0400 |
commit | 4f18b7c10bb16da294baa2cca883238e82ce4306 (patch) | |
tree | 389d111ad7f29e5637a94d86d72461e48502f5a8 /src-qt5/core/libLumina/LuminaOS-Gentoo.cpp | |
parent | Get the new lumina-mediaplayer semi-working. If pianobar is installed, it can... (diff) | |
parent | Merge pull request #406 from sru-systems/fix-gentoo-dbus (diff) | |
download | lumina-4f18b7c10bb16da294baa2cca883238e82ce4306.tar.gz lumina-4f18b7c10bb16da294baa2cca883238e82ce4306.tar.bz2 lumina-4f18b7c10bb16da294baa2cca883238e82ce4306.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/libLumina/LuminaOS-Gentoo.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaOS-Gentoo.cpp | 20 |
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 |