diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-19 10:20:49 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-19 10:20:49 -0400 |
commit | 136d287ae121eb8bfb1d9c5c0857cc5aa2fb507f (patch) | |
tree | 7bcc4e8b41025ccbe9c288c0c334f7dc7fd17a5a /libLumina/LuminaOS-DragonFly.cpp | |
parent | Add the ability to lock the screen from the log out menu in lumina-desktop. (diff) | |
download | lumina-136d287ae121eb8bfb1d9c5c0857cc5aa2fb507f.tar.gz lumina-136d287ae121eb8bfb1d9c5c0857cc5aa2fb507f.tar.bz2 lumina-136d287ae121eb8bfb1d9c5c0857cc5aa2fb507f.zip |
Add support for detecting whether the running user has permission to shutdown/restart the system, and enable/disable those options in the logout menu appropriately.
Diffstat (limited to 'libLumina/LuminaOS-DragonFly.cpp')
-rw-r--r-- | libLumina/LuminaOS-DragonFly.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libLumina/LuminaOS-DragonFly.cpp b/libLumina/LuminaOS-DragonFly.cpp index 990bf9f7..6d59f0d7 100644 --- a/libLumina/LuminaOS-DragonFly.cpp +++ b/libLumina/LuminaOS-DragonFly.cpp @@ -131,6 +131,11 @@ void LOS::startMixerUtility(){ QProcess::startDetached("pc-mixer -notray"); } +//Check for user system permission (shutdown/restart) +bool LOS::userHasShutdownAccess(){ + return true; //not implemented yet +} + //System Shutdown void LOS::systemShutdown(){ //start poweroff sequence QProcess::startDetached("shutdown -p now"); |