Bug 1093432

Summary: Inconsistent PATH vs gnome-terminal menu
Product: Red Hat Enterprise Linux 7 Reporter: Jim Perrin <jperrin>
Component: nautilus-open-terminalAssignee: Alexander Larsson <alexl>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 7.0CC: admiller, bugzilla, hermit4loop, ohudlick, rik.theys, simone.tolotti, ssbarnea
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-09 09:32:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jim Perrin 2014-05-01 18:37:13 UTC
Description of problem:
In some instances, right clicking on the desktop, and selecting 'open in terminal' delivers a shell with an incomplete path. It appears to have not processed ~/.bash_profile and thus does not have ~/.local/bin or ~/bin in the path. 

Version-Release number of selected component (if applicable):
nautilus-open-terminal-0.20-3.el7.x86_64
gnome-terminal-3.8.4-8.el7.x86_64

How reproducible:
seems varied from irc discussions. For me this occurs every time I log in. For others it seems to only happen sporadically. 

Steps to Reproduce:
1. right click on gnome3 desktop -> open-in-terminal
2. see that $PATH doesn't contain ~/.local/bin or ~/bin
3.

Actual results:
echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

Expected results:
echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/jperrin/.local/bin:/home/jperrin/bin

Additional info:

This appears sporadic, but when it does happen it can be maddening if you're dealing with ruby gems or bundler.

Comment 3 Simone Tolotti 2014-10-08 13:24:55 UTC
Could it be related to this? https://bugzilla.redhat.com/show_bug.cgi?id=814397

Comment 4 Jim Perrin 2014-10-08 13:30:18 UTC
I believe it is related to that issue, yes.

Comment 5 Shingo Ishida 2014-12-18 07:41:16 UTC
Sometimes I experiencing the same bug.

I don't know how to fix it, But I know the launch of nautilus has two ways.

- gnome-session launch the nautilus.
- dbus-daemon launch the nautilus.

Sometimes nautilus is started by gnome-session and at the other times it is started by dbus-daemon.

The dbus-daemon is started without login shell, So nautilus is started by dbus-daemon without login profiles.

Comment 7 Shnoulle 2016-01-25 10:10:57 UTC
Same with fedora 23. With
gnome-terminal-nautilus.x86_64 3.18.2-1.fc23
or
nautilus-open-terminal.x86_64 0.20-5.fc23

Comment 8 Shnoulle 2016-01-25 10:11:35 UTC
(In reply to Shnoulle from comment #7)
> Same with fedora 23. With
> gnome-terminal-nautilus.x86_64 3.18.2-1.fc23
> or
> nautilus-open-terminal.x86_64 0.20-5.fc23

https://bugzilla.redhat.com/show_bug.cgi?id=1301515

Comment 9 Sorin Sbarnea 2018-05-28 13:54:07 UTC
I think tha this bug is related to https://bugzilla.redhat.com/show_bug.cgi?id=1583227

Comment 10 Alexander Larsson 2020-03-09 09:32:11 UTC

*** This bug has been marked as a duplicate of bug 1583227 ***