https://bugzilla.xfce.org/show_bug.cgi?id=8729
--- Comment #10 from Evangelos Foutras <[email protected]> --- Created attachment 4662 --> https://bugzilla.xfce.org/attachment.cgi?id=4662&action=edit Changes to Christian Hesse's original patch I had to make a few changes for shutdown and reboot to work properly with systemd (consolekit is not present on the system anymore). This is the first time I dabble with polkit/logind stuff, but I needed xfce4-session to work with systemd now that Arch is dropping consolekit. Aside from the method id changes (org.freedesktop.login1.shutdown -> org.freedesktop.login1.power-off, Restart -> Reboot, Shutdown -> PowerOff), the following two changes were needed: 1) polkit_unix_session_new_for_process_sync() -> polkit_unix_process_new() polkitd would simple die otherwise. Relevant report: https://bugs.freedesktop.org/show_bug.cgi?id=53905 2) g_dbus_connection_call() -> g_dbus_connection_call_sync() With the asynchronous call, xfce4-session would exit and I'd be back to the SLiM login manager. With g_dbus_connection_call_sync() the system will correctly shutdown/reboot. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Xfce-bugs mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce-bugs
