Package: lxsession
Version: 0.4.6.1-4
Severity: important
Tags: patch

By default polkit forces you to confirm shutdowns or reboots in case other 
users are logged in. This is authentication dialog is initiated by 
lxsession-logout via dbus. The timeout for _all_ dbus replies is 2000ms as 
set in lxsession-logout/dbus-interface.c

That may be fine for non-interactive requests (do we support suspend?, etc).
If the request pops up a window for the user to select an account and enter 
the valid password 2000ms is too short.

The obvious simple fix is to extend the timeout to 60s (long enough for me).
Patch for that is below. 

Rated important as it takes away the option to cleanly shutdown the machine
from inexperienced users (read: my parents).

Regards,

Tobias

--- lxsession-0.4.6.1.orig/lxsession-logout/dbus-interface.c
+++ lxsession-0.4.6.1/lxsession-logout/dbus-interface.c
@@ -32,7 +32,7 @@ static struct {
     DBusConnection * connection;               /* Handle for connection */
 } dbus_context;

-enum { DBUS_TIMEOUT = 2000 };                  /* Reply timeout */
+enum { DBUS_TIMEOUT = 60000 };                 /* Reply timeout */

 /* FORWARDS */
 gboolean dbus_ConsoleKit_CanStop(void);



-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lxsession depends on:
ii  libatk1.0-0         2.4.0-2
ii  libc6               2.13-38
ii  libcairo2           1.12.2-3
ii  libdbus-1-3         1.6.8-1
ii  libfontconfig1      2.9.0-7.1
ii  libfreetype6        2.4.9-1.1
ii  libgdk-pixbuf2.0-0  2.26.1-1
ii  libglib2.0-0        2.33.12+really2.32.4-5
ii  libgtk2.0-0         2.24.10-2
ii  libpango1.0-0       1.30.0-1
ii  libx11-6            2:1.5.0-1

Versions of packages lxsession recommends:
ii  openbox [x-window-manager]   3.5.0-7
ii  openssh-client [ssh-client]  1:6.0p1-4
ii  upower                       0.9.17-1

Versions of packages lxsession suggests:
ii  gpicview     0.2.3-2
ii  lxde-common  0.5.5-6
ii  lxpanel      0.5.10-1
ii  pcmanfm      0.9.10-3

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to