which call in /etc/gdm/Xsession is wrong

Luis Mondesi lemsx1 at gmail.com
Sat Feb 18 23:25:58 UTC 2006


Package: gdm
Version: 2.13.0.8-0ubuntu1
Severity: normal

/etc/gdm/Xsession calls "which" without checking if which has be aliased
to some other command. If for instance, 

alias which='type -a' 

has been set, then the output of which will be different than what
Xsession expects. A gdmwhich function should be used (like other gdm
scripts in PreSession and Init etc...)

Or something like this should be done:

WHICH=/bin/which

:s/which/$WHICH/gc

Both solutions solve this problem.

Now when gnome-session fails to start for whatever reason, zenity
displays the dialog correctly.

-- System Information:
Debian Release: testing/unstable
  APT prefers dapper-updates
  APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 'dapper'), (500, 'breezy-security')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.3-desktop-2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)

Versions of packages gdm depends on:
ii  adduser               3.80               Add and remove users and groups
ii  alsa-utils            1.0.10-1ubuntu7    ALSA utilities
ii  debconf               1.4.70ubuntu1      Debian configuration management sy
ii  dpkg                  1.13.11ubuntu2     package maintenance system for Deb
ii  gksu                  1.3.6-1ubuntu10    graphical frontend to su
ii  gnome-session         2.13.91-0ubuntu1   The GNOME 2 Session Manager
ii  gnome-terminal [x-ter 2.13.91-0ubuntu1   The GNOME 2 terminal emulator appl
ii  libart-2.0-2          2.3.17-1           Library of functions for 2D graphi
ii  libatk1.0-0           1.11.2-0ubuntu1    The ATK accessibility toolkit
ii  libattr1              2.4.25-1           Extended attribute shared library
ii  libbz2-1.0            1.0.3-0ubuntu1     high-quality block-sorting file co
ii  libc6                 2.3.6-0ubuntu6     GNU C Library: Shared libraries an
ii  libcairo2             1.0.2-3ubuntu1     The Cairo 2D vector graphics libra
ii  libcroco3             0.6.0-2            a generic Cascading Style Sheet (C
ii  libfontconfig1        2.3.2-1.1ubuntu3   generic font configuration library
ii  libfreetype6          2.1.10-1ubuntu1    FreeType 2 font engine, shared lib
ii  libglade2-0           1:2.5.1-2ubuntu2   library to load .glade files at ru
ii  libglib2.0-0          2.9.6-0ubuntu1     The GLib library of C routines
ii  libgnomecanvas2-0     2.13.0-0ubuntu1    A powerful object-oriented display
ii  libgsf-1-113          1.13.3-1           Structured File Library - runtime 
ii  libgtk2.0-0           2.8.11-1ubuntu2    The GTK+ graphical user interface 
ii  libpam-modules        0.79-3ubuntu9      Pluggable Authentication Modules f
ii  libpam-runtime        0.79-3ubuntu9      Runtime support for the PAM librar
ii  libpam0g              0.79-3ubuntu9      Pluggable Authentication Modules l
ii  libpango1.0-0         1.11.5-0ubuntu1    Layout and rendering of internatio
ii  libpng12-0            1.2.8rel-1ubuntu3  PNG library - runtime
ii  libpopt0              1.7-5              lib for parsing cmdline parameters
ii  librsvg2-2            2.13.93-0ubuntu1   SAX-based renderer library for SVG
ii  libselinux1           1.28-2ubuntu2      SELinux shared libraries
ii  libwrap0              7.6.dbs-8          Wietse Venema's TCP wrappers libra
ii  libx11-6              2:1.0.0-0ubuntu3   X11 client-side library
ii  libxau6               1:1.0.0-0ubuntu3   X11 authorisation library
ii  libxcursor1           1.1.5.2-0ubuntu2   X cursor management library
ii  libxdmcp6             1:1.0.0-0ubuntu2   X11 Display Manager Control Protoc
ii  libxext6              2:1.0.0-0ubuntu3   X11 miscellaneous extension librar
ii  libxfixes3            1:3.0.1.2-0ubuntu2 X11 miscellaneous 'fixes' extensio
ii  libxi6                2:1.0.0-0ubuntu2   X11 Input extension library
ii  libxinerama1          2:1.0.1-0ubuntu2   X11 Xinerama extension library
ii  libxml2               2.6.23-1ubuntu4    GNOME XML library
ii  libxrandr2            1:1.1.0.2-0ubuntu2 X11 RandR extension library
ii  libxrender1           1:0.9.0.2-0ubuntu2 X Rendering Extension client libra
ii  lsb-base              3.0-12ubuntu2      Linux Standard Base 3.0 init scrip
ii  metacity [x-window-ma 1:2.13.89-0ubuntu1 A lightweight GTK2 based Window Ma
ii  ubuntu-artwork        0.2.28-2           Ubuntu themes and artwork
ii  ubuntu-sounds         0.3                Ubuntu's GNOME audio theme
ii  xbase-clients         7.0.0-0ubuntu16    X Window System client utility tra
ii  xterm [x-terminal-emu 208-0ubuntu2       X terminal emulator
ii  zlib1g                1:1.2.3-6ubuntu4   compression library - runtime

Versions of packages gdm recommends:
ii  dialog                  1.0-20060101-1   Displays user-friendly dialog boxe
ii  whiptail                0.51.6-31ubuntu1 Displays user-friendly dialog boxe
ii  zenity                  2.13.90-0ubuntu1 Display graphical dialog boxes fro

-- debconf information:
  gdm/daemon_name: /usr/sbin/gdm
* shared/default-x-display-manager: gdm




More information about the ubuntu-users mailing list