Bug#403931: 55gnome-session_gnomerc has potential syntax error
David Gluss
DGluss at DSMSolutionsInc.com
Wed Dec 20 18:35:24 UTC 2006
Package: gnome-session
Version: 2.8.1-6
If the symlink /etc/alternatives/x-session-manager doesn't exist, this
script in /etc/X11/Xsession.d fails. Enclosed is a better alternative.
# If we are running the GNOME session, source ~/.gnomerc
BASESTARTUP=`basename "$STARTUP" | cut -d\ -f1`
XSM=`readlink /etc/alternatives/x-session-manager`
if [ "$XSM" = "" ]; then
echo No /etc/alternatives/x-session-manager in
/etc/X11/Xsession.d/55gnome-session_gnomerc
fi
if [ "$BASESTARTUP" = gnome-session -o \
\( "$BASESTARTUP" = x-session-manager -a \
"$XSM" = \
/usr/bin/gnome-session \) ]; then
GNOMERC=$HOME/.gnomerc
if [ -r "$GNOMERC" ]; then
. "$GNOMERC"
fi
fi
By not embedding the readlink command in the "if", we can avoid a syntax
error. The lack of /etc/alternatives/x-session-manager
can occur in the course of an upgrade to etch.
Thanks! Sorry about the previous incomplete bug report (no headers) and
I
also added the "echo" so the user gets a report in .xsession-errors.
David Gluss
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 55gnome-session_gnomerc
Type: application/octet-stream
Size: 491 bytes
Desc: 55gnome-session_gnomerc
Url : http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20061220/f4cee420/55gnome-session_gnomerc.obj
More information about the pkg-gnome-maintainers
mailing list