[Xfce-bugs] [Bug 14722] Better shutdown fallback code for the BSDs

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Oct 6 09:45:53 CEST 2018


https://bugzilla.xfce.org/show_bug.cgi?id=14722

Landry Breuil <landry at xfce.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |landry at xfce.org

--- Comment #1 from Landry Breuil <landry at xfce.org> ---
Cool stuff !

Reading your diff, from what i understand, on BSD the code will first check
- if the user is operator, if we're shutting down/rebooting
- or the user has access to apmdev, which means the system has to run apmd, and
the user is in wheel group (on OpenBSD apmdev is mode 660, root:wheel) - and if
we're suspending/hibernating

If those conditions are fullfilled, it will *first* use the 'native' methode
(ie shutdown -p, shutdown -r, zzz, ZZZ), and *then* use polkit as a fallback ?

i like this behaviour, i just want to make sure i understand it fully so that i
can document it properly for users in
https://github.com/openbsd/ports/blob/master/meta/xfce/pkg/README-main#L20

- if you run apmd and are in the wheel group, you can suspend/hibernate 
- if you are in operator group you can shutdown/reboot
- as a fallback, you should install polkit, *and* have systemwide dbus daemon
running

will test your diff in the coming days in various situations so that i can
confirm reality matches my understanding.

Thanks !

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list