Use systemd-logind methods instead of polkit permissions
Submitted by Marcos Mello
Assigned to Ali Abdallah @ali
Description
https://git.xfce.org/xfce/xfce4-power-manager/tree/src/xfpm-systemd.c#n116
Polkit permissions are not suitable for this, as user may have permission to, for example, hibernate but system does not support it. See this xfce4-session commit:
https://git.xfce.org/xfce/xfce4-session/commit?id=e10ac91be3301c92900168855b265101ba9884e2
Version: git