Instead of g_spawn_command_line_async(), the following could also be
used:
gdk_property_change(gdk_get_default_root_window(),
gdk_atom_intern("LDM_LOGOUT_ACTION", FALSE), XA_STRING, 8,
GDK_PROP_MODE_REPLACE, (guchar *) "HALT", strlen("HALT"));
...but that would require #including some additional headers, and I
didn't want to be intrusive. So IMHO the g_spawn call is just fine.
--
Patch for LTSP clients to properly reboot/shutdown
https://bugs.launchpad.net/bugs/491940
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs