Bug#758810: [gdm3] gdm3: fails to start gnome

Simon McVittie smcv at debian.org
Thu Aug 21 15:22:08 UTC 2014


On 21/08/14 15:51, Josep M. Perez Cancer wrote:
> Aug 21 13:28:37 bsccs243 /etc/gdm3/Xsession[21442]:
/etc/gdm3/Xsession: Beginning session setup...
> Aug 21 13:28:37 bsccs243 /etc/gdm3/Xsession[21442]:
/etc/bash_completion.d/pulseaudio-bash-completion.sh: line 6: syntax
error near unexpected token `<'
> Aug 21 13:28:37 bsccs243 /etc/gdm3/Xsession[21442]:
/etc/bash_completion.d/pulseaudio-bash-completion.sh: line 6: ` done <
<(pactl list cards short 2> /dev/null)'

I think this might be the error that is terminating your X session.
/etc/gdm3/Xsession is a /bin/sh script and sources ~/.profile.

Please try removing bash-specific things from your ~/.profile, moving
them to ~/.bashrc, or guarding them with:

    if [ "z$BASH_VERSION" != z ]
    then
        ... enable bash completion or source .bashrc or whatever ...
    fi

It might also be useful to guard things that are specific to an
interactive shell with

    if [ -n "$PS1" ]
    then
        ... things that only make sense in an interactive shell ...
    fi

If that is indeed the cause of this error, I'll leave it to the gdm
maintainers to decide whether this is a gdm bug or not. According to the
changelog, it has sourced ~/.profile since gdm/2.20.2-1 in 2007, so this
isn't a recent thing (but /etc/X11/Xsession doesn't, which explains why
you don't see this in non-gdm).

    S



More information about the pkg-gnome-maintainers mailing list