Hello list,
lxsession-logout queries polkit/dbus for users privileges in order to
display the "shutdown" and "reboot" logout options. The timeout waiting
for a reply is set to 2 seconds. Apparently, this is insufficient on
smaller computers, where dbus takes much more time (up to 10 seconds) to
answer the first query, so the shutdown, reboot and suspend buttons are
missing. Consecutive queries seem to be quicker, so we have the effect
that you have to click on "Logout" twice to get all options.
The following patch increases this timeout to 10 seconds, which is just
long enough for my slowest testing machines in order to display the
logout dialog correctly on the first try.
Regards
-Klaus Knopper
--- lxsession-0.4.6.1/lxsession-logout/dbus-interface.c.orig 2012-06-14 16:26:56.000000000 +0200
+++ lxsession-0.4.6.1/lxsession-logout/dbus-interface.c 2012-06-14 18:54:44.000000000 +0200
@@ -32,7 +32,7 @@
DBusConnection * connection; /* Handle for connection */
} dbus_context;
-enum { DBUS_TIMEOUT = 2000 }; /* Reply timeout */
+enum { DBUS_TIMEOUT = 10000 }; /* Reply timeout */
/* FORWARDS */
gboolean dbus_ConsoleKit_CanStop(void);
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list