Bug 671875 - Overwrites PATH variable with /usr/bin
Summary: Overwrites PATH variable with /usr/bin
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Owen Taylor
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-22 11:07 UTC by Zdenek Kabelac
Modified: 2011-03-11 13:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-11 13:34:38 UTC
Type: ---


Attachments (Terms of Use)

Description Zdenek Kabelac 2011-01-22 11:07:04 UTC
Description of problem:

Gnome-shell 'destroy' my PATH setting from .bash_profile login.
This is part of /usr/bin/gnome-shell:

'PATH'  : '/usr/bin:' + os.environ.get('PATH', ''),


This is definitely very bad idea of PATH handling.
'/usr/bin' is already part of PATH and as a user I prefer to decide,
where are the binaries loaded from.

At best - the tool can check whether /usr/bin is already part of PATH
and if it's not - it can attach this path as the 'last' one in the list.

Version-Release number of selected component (if applicable):
gnome-shell-2.91.5-3.fc15.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Michal Schmidt 2011-03-11 10:43:13 UTC
I don't think it does that anymore.
Are you still seeing the problem?

Comment 2 Zdenek Kabelac 2011-03-11 13:24:06 UTC
Yes with gnome-shell-2.91.91-1.fc15.x86_64 my path is again properly ordered and I do not get /usr/bin prepended as the firt.
(though gnome-shell itself crashes 30times per day with thunderbird)


Note You need to log in before you can comment on or make changes to this bug.