ConsoleKit is being dropped at some point, replaced by calls to systemd instead. It would be nice if xfce4-session supported this at some point. See: https://fedoraproject.org/wiki/Features/ckremoval https://bugzilla.gnome.org/show_bug.cgi?id=669850 http://bugzilla.gnome.org/show_bug.cgi?id=666891 Almost surely too late for 4.10, but would be nice. ;)
Argh. Now the portability sillyness begins.. as long at it doesn't break ckit/sudo.. I think Auke Kok did parts of this for Tizen.
Systemd was mainly developed for Gnome3 in Fedora, propably to take away most of the configuration effort from the user by doing autodetections where possible. If you look what problems other distributions have to port systemd, you know what's happening here: Systemd conflicts with a lot of goals of (other) distributions. This would mean that systemd support should stay as optionsl for Xfce. For instance, ArchLinux can be driven without usage of systemd at all, and that should be the future, too. Just my 5 ct. Sorry if it's trolling (again).
Maybe interesting side node for the discussion about ConsoleKit, Upstart vs. Systemd. Canonical: Ubuntu To Soon Ship On 5% Of PCs Posted by Michael Larabel on May 07, 2012 http://www.phoronix.com/scan.php?page=news_item&px=MTA5ODM
@Raphael: Please don't spam Bugzilla by posting misinformation (systemd developed for GNOME 3) and irrelevant news articles (that Phoronix link is of no use for the discussion about systemd).
@Jannis: Sorry, but you are wrong. You should better read what other developers are writing about their own software: https://mail.gnome.org/archives/desktop-devel-list/2011-May/msg00427.html "In the future I expect more interfacing with GNOME however, and I'd thus like to see the discussion regarding acceptance as blessed dependency started early."
By the way, note that if GNOME3 begins to require Linux kernel to be usable, then (again) some people will switch to Xfce (and other DE). Unless we make the same choice, obviously.
Created attachment 4572 add systemd support to xfce4-session
Ok, hacked a bit and got the attached patch. Tested it in a virtual machine, seems to work there. Any comments?
Hi, I don't have systemd so I can't test your patch. Reviewing your patch, you should respect the naming conventions of xfce4-session. It would be great for readability and maintainability if you used the same file structure and naming conventions as the xfsm-consolekit.{c,h} files. Regards, Jérôme
Created attachment 4662 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.
Created attachment 4702 xfce4-session-systemd-v2 Ok, reworked this a bit. I merged the changes by Evangelos Foutras and tried to meet the xfce4-session naming conventions. Hope this can go mainline some time...
Pushed in ae28aef.
Excellent. :) Any chance of a 4.10.1 release with this? :)