gdm Xsession not sourcing .xprofile (anymore)

Bug #130941 reported by Brian J. Murrell
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gdm

I have a bunch of stuff in my ~/.xprofile (PATH setting, etc.) that seems to have stopped working recently. Has the Xsession file /etc/gdm/Xsession recently stopped processing this file, or has a file been removed from /etc/X11/Xsession.d that sourced ~/.xprofile?

The help text for /etc/gdm/Xsession says:

            <term>BaseXsession</term>
            <listitem>
              <synopsis>BaseXsession=&lt;etc&gt;/gdm/Xsession</synopsis>
              <para>
                This is the base X session file. When a user logs in, this
                script will be run with the selected session as the first
                argument. The selected session will be the
                <filename>Exec=</filename> from the
                <filename>.desktop</filename> file of the session.
              </para>

and my configuration is:

$ grep BaseXsession /etc/gdm/*
/etc/gdm/factory-gdm.conf:BaseXsession=/etc/gdm/Xsession
/etc/gdm/gdm.conf:BaseXsession=/etc/gdm/Xsession
/etc/gdm/gdm.conf.dpkg-old:BaseXsession=/etc/gdm/Xsession

So why's this all of a sudden not working any more?

Certainly I can add a file to /etc/X11/Xsession.d/ but surely we all should not have to to maintain this past behaviour.

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. I've uploaded a new revision fixing it

Changed in gdm:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

gdm (2.19.5-0ubuntu3) gutsy; urgency=low

  * debian/Xsession:
    - read profile configurations (LP: #130941)

 -- Sebastien Bacher <email address hidden> Wed, 08 Aug 2007 17:40:37 +0200

Changed in gdm:
status: Fix Committed → Fix Released
Revision history for this message
Brendan O'Dea (bod) wrote :

I'm not sure that this is entirely a good idea. /etc/gdm/Xsession is run as /bin/sh, which on my system is dash. Sourcing my ~/.profile, which is intended for $SHELL (ksh in this case) doesn't always work out as intended.

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :

If you go back and read the original comment you will see we are talking about sourcing ~/.xprofile, not ~/.profile.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.