75source-profile wipes $PATH on startx

Bug #1119117 reported by Øyvind Hvidsten
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Raspbian
Fix Released
Undecided
Unassigned

Bug Description

In Raspbian, there's a file called /etc/X11/Xsession.d/75source-profile, which contains:
[ -f /etc/profile ] && . /etc/profile
[ -f "/home/root/.profile" ] && . "/home/root/profile"

This file is nonsensical. "Nobody" has a /home/root, and /etc/profile will wipe your $PATH
It should AT LEAST source $HOME/.profile, but ideally this file shouldn't need to exist.

Revision history for this message
Nick Pollock (penrose94) wrote :

I don't know if it's a bug, but it's certainly a nuisance.

What's the recommended workaround? At the moment I just execute a script which restores ~/bin to the path every time I startx. Irritating.

Revision history for this message
Øyvind Hvidsten (bolt-e) wrote :

I simply removed the file. It doesn't seem to break anything, at least with my setup.
However, I have to remember to do so on each Pi I install, and lately there's been quite a few of them around the office.

Revision history for this message
Diederik (didi-debian) wrote :

From which package does /etc/X11/Xsession.d/75source-profile come from?
You can find that out by running `dpkg -S /etc/X11/Xsession.d/75source-profile`

Changed in raspbian:
status: New → Incomplete
Revision history for this message
Øyvind Hvidsten (bolt-e) wrote :

This was fixed years ago, probably by another bug report. Recent Raspbian editions do not have this problem.

Revision history for this message
Diederik (didi-debian) wrote :

Ok, thanks for reporting back :)

Changed in raspbian:
status: Incomplete → Fix Released
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.