http://bugs.winehq.org/show_bug.cgi?id=16188
--- Comment #1 from Damjan Jovanovic damjan.jov@gmail.com 2009-01-03 02:08:32 --- Created an attachment (id=18421) --> (http://bugs.winehq.org/attachment.cgi?id=18421) XSMP support
Well I've got the beginning of a patch for this (changed to configure not included), but it has a number of issues:
1. Apparently (according to gnome-session 2.22 source) libSM doesn't like re-entry.
2. On xfce-session, this correctly stops a shutdown if applications are busy. However if applications allow a shutdown, it pauses for about a minute before shutting down. Could be related to (1).
3. The libICE connection is only processed when there are X11 messages in the queue, so nothing happens until you move the mouse over the window :-).
4. The biggest problem, is that XSMP is considered an ancient standard that doesn't play nicely with today's power management and suspend/resume. Gnome-session 2.24 (used on Ubuntu 8.10 and the new Fedora) doesn't work at all, since that version of gnome-session has started moving to a new DBus based (and currently Gnome proprietary) session manager protocol and support for the legacy XSMP stuff has not been finished yet (https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/249373).
So I am not sure it's worth it to continue with this XSMP-based patch, or wait a few months for the new, better, DBus API to get standardised.