aboutsummaryrefslogtreecommitdiff
path: root/libLumina/LuminaOS.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-19 10:20:49 -0400
committerKen Moore <ken@pcbsd.org>2014-09-19 10:20:49 -0400
commit136d287ae121eb8bfb1d9c5c0857cc5aa2fb507f (patch)
tree7bcc4e8b41025ccbe9c288c0c334f7dc7fd17a5a /libLumina/LuminaOS.h
parentAdd the ability to lock the screen from the log out menu in lumina-desktop. (diff)
downloadlumina-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.h')
-rw-r--r--libLumina/LuminaOS.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libLumina/LuminaOS.h b/libLumina/LuminaOS.h
index 6b755e03..f4fe8970 100644
--- a/libLumina/LuminaOS.h
+++ b/libLumina/LuminaOS.h
@@ -51,6 +51,8 @@ public:
//Launch the graphical audio mixer utility
static void startMixerUtility();
+ //Check for user system permission (shutdown/restart)
+ static bool userHasShutdownAccess();
//System Shutdown
static void systemShutdown(); //start poweroff sequence
//System Restart
bgstack15