Bug#618870: gnome-shell: "Power Off" does not work with gnome-session-save, "Logout" does not show a dialog

Jens Lody jens at lody.name
Sat Mar 19 07:33:59 UTC 2011


Package: gnome-shell
Version: 2.91.91-1
Severity: important
Tags: patch

If gnome-session-quit does not exist, an error-message is shown if "Power Off" is clicked in the menu.
This happens, because instead of Util.trySpawn Util.spawn is used.
After fixing it, the shutdown-dialog is not shown, due to wrong parameters for gnome-session-save.
Another problem is, that if "logout" is clicked the logout is done immediately, without asking the user.
Again due to incorrect parameters.
I attach a patch for statusMenu.js that fixes both problems. It's not tested with gnome-session-quit.
I guess the appropriate patch 04_debian... if I remember correctly has to be fixed accordingly.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-rc8 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnome-shell depends on:
ii  gconf2                      2.32.1-2     GNOME configuration database syste
ii  gir1.2-atk-1.0              1.32.0-2     The ATK accessibility toolkit (GOb
ii  gir1.2-clutter-1.0          1.6.8-1      GObject introspection data for the
ii  gir1.2-freedesktop          0.10.4-1     Introspection data for some FreeDe
ii  gir1.2-gconf-2.0            2.32.1-2     GNOME configuration database syste
ii  gir1.2-gdkpixbuf-2.0        2.23.0-2     GDK Pixbuf library - GObject-Intro
ii  gir1.2-gkbd-3.0             2.91.91-1    GObject introspection data for the
ii  gir1.2-glib-2.0             0.10.4-1     Introspection data for GLib, GObje
ii  gir1.2-gtk-3.0              3.0.3-1      The GTK+ graphical user interface 
ii  gir1.2-json-glib-1.0        0.12.0-2     GLib JSON manipulation library (do
ii  gir1.2-mutter-2.91          2.91.91-1    GObject introspection data for Mut
ii  gir1.2-pango-1.0            1.28.3-4     Layout and rendering of internatio
ii  gir1.2-polkit-1.0           0.101-1      GObject introspection data for Pol
ii  gir1.2-telepathyglib-0.12   0.13.17-1    GLib Telepathy connection manager 
ii  gir1.2-upowerglib-1.0       0.9.8-3      GObject introspection data for upo
ii  gjs                         0.7.13-1     Mozilla-based javascript bindings 
ii  gnome-control-center        1:2.91.91-3  utilities to configure the GNOME d
ii  gnome-settings-daemon       2.91.91-1    daemon handling the GNOME session 
ii  gsettings-desktop-schemas   2.91.91-1    GSettings deskop-wide schemas
ii  libatk1.0-0                 1.32.0-2     The ATK accessibility toolkit
ii  libc6                       2.13-0exp4   Embedded GNU C Library: Shared lib
ii  libcairo-gobject2           1.10.2-4     The Cairo 2D vector graphics libra
ii  libcairo2                   1.10.2-4     The Cairo 2D vector graphics libra
ii  libcamel1.2-19              2.32.2-2     The Evolution MIME message handlin
ii  libcanberra0                0.26-3       a simple abstract interface for pl
ii  libclutter-1.0-0            1.6.8-1      Open GL based interactive canvas l
ii  libcroco3                   0.6.2-1      a generic Cascading Style Sheet (C
ii  libdbus-1-3                 1.4.6-1      simple interprocess messaging syst
ii  libdbus-glib-1-2            0.92-1       simple interprocess messaging syst
ii  libdconf0 [gsettings-backen 0.7.2-1      Simple key-based configuration sys
ii  libdrm2                     2.4.24-1     Userspace interface to kernel DRM 
ii  libebook1.2-10              2.32.2-2     Client library for evolution addre
ii  libecal1.2-8                2.32.2-2     Client library for evolution calen
ii  libedataserver1.2-14        2.32.2-2     Utility library for evolution data
ii  libedataserverui1.2-11      2.32.2-2     GUI utility library for evolution 
ii  libffi5                     3.0.9-3      Foreign Function Interface library
ii  libfontconfig1              2.8.0-2.1    generic font configuration library
ii  libfreetype6                2.4.4-1      FreeType 2 font engine, shared lib
ii  libgconf2-4                 2.32.1-2     GNOME configuration database syste
ii  libgdk-pixbuf2.0-0          2.23.0-2     GDK Pixbuf library
ii  libgirepository-1.0-1       0.10.4-1     Library for handling GObject intro
ii  libgjs0b                    0.7.13-1     Mozilla-based javascript bindings 
ii  libgl1-mesa-glx [libgl1]    7.10-4       A free implementation of the OpenG
ii  libglib2.0-0                2.28.2-1     The GLib library of C routines
ii  libgnome-desktop-3-0        2.91.6.1-1   Utility library for loading .deskt
ii  libgnome-menu2              2.30.3-2     an implementation of the freedeskt
ii  libgstreamer0.10-0          0.10.32-5    Core GStreamer libraries and eleme
ii  libgtk-3-0                  3.0.3-1      The GTK+ graphical user interface 
ii  libgtk2.0-0                 2.24.3-1     The GTK+ graphical user interface 
ii  libical0                    0.44-3       iCalendar library implementation i
ii  libjson-glib-1.0-0          0.12.0-2     GLib JSON manipulation library
ii  libmozjs4d                  2.0~rc1-1    The Mozilla SpiderMonkey JavaScrip
ii  libmutter-wm0               2.91.91-1    window manager library for the Mut
ii  libnspr4-0d                 4.8.7-2      NetScape Portable Runtime Library
ii  libnss3-1d                  3.12.9-2     Network Security Service libraries
ii  libpango1.0-0               1.28.3-4     Layout and rendering of internatio
ii  libpolkit-agent-1-0         0.101-1      PolicyKit Authentication Agent API
ii  libpolkit-gobject-1-0       0.101-1      PolicyKit Authorization API
ii  libpulse-mainloop-glib0     0.9.22-1     PulseAudio client libraries (glib 
ii  libpulse0                   0.9.22-1     PulseAudio client libraries
ii  libsoup2.4-1                2.33.90-1    an HTTP library implementation in 
ii  libsqlite3-0                3.7.5-1      SQLite 3 shared library
ii  libstartup-notification0    0.10-1       library for program launch feedbac
ii  libtelepathy-glib0          0.13.17-1    Telepathy framework - GLib library
ii  libx11-6                    2:1.4.1-5    X11 client-side library
ii  libxcomposite1              1:0.4.3-1    X11 Composite extension library
ii  libxdamage1                 1:1.1.3-1    X11 damaged region extension libra
ii  libxext6                    2:1.2.0-2    X11 miscellaneous extension librar
ii  libxfixes3                  1:5.0-1      X11 miscellaneous 'fixes' extensio
ii  libxi6                      2:1.4.1-1    X11 Input extension library
ii  libxml2                     2.7.8.dfsg-2 GNOME XML library
ii  mesa-utils                  8.0.1-2      Miscellaneous Mesa GL utilities
ii  pkg-config                  0.25-1.1     manage compile and link flags for 
ii  python                      2.6.6-11     interactive high-level object-orie

gnome-shell recommends no packages.

gnome-shell suggests no packages.

-- no debconf information
-------------- next part --------------
--- statusMenu.js.orig	2011-03-19 08:08:11.000000000 +0100
+++ statusMenu.js	2011-03-19 08:09:53.000000000 +0100
@@ -202,7 +202,7 @@
         try {
             Util.trySpawn(['gnome-session-quit', '--logout']);
         } catch (err) {
-            Util.spawn(['gnome-session-save', '--logout']);
+            Util.spawn(['gnome-session-save', '--logout-dialog']);
         }
     },
 
@@ -214,9 +214,9 @@
             this._upClient.suspend_sync(null);
         } else {
             try {
-                Util.spawn(['gnome-session-quit', '--power-off']);
+                Util.trySpawn(['gnome-session-quit', '--power-off']);
             } catch (err) {
-                Util.spawn(['gnome-session-save', '--power-off']);
+                Util.spawn(['gnome-session-save', '--shutdown-dialog']);
             }
         }
     },


More information about the pkg-gnome-maintainers mailing list