gnome-terminal not started as an "interactive shell"

Bug #250000 reported by Reuben Firmin
2
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-terminal

The bash started by gnome-terminal (invoked from the Gnome menu) didn't know it was supposed to be an interactive shell. This means that a user's .bash_profile is not sourced.

So I edited the gnome-terminal applet to add the option --command="bash --login", which made .bash_profile start to work.

Reuben Firmin (reubenf)
description: updated
Revision history for this message
Andreas Braml (a-strich-b) wrote :

As far as my knowledge goes, this is not a bug, but exactly what bash (or any shell in an X terminal emulator) is supposed to do. .bash_profile is only sourced on login, not when starting a new shell. To influence the environment of interactive shell sessions, use .bashrc

Revision history for this message
Reuben Firmin (reubenf) wrote :

Ah.

But konsole (in KDE) *does* have the contents of .bash_profile successfully picked up. So either gnome-terminal is not picking up the environment variables set at login, or gnome isn't sourcing .bash_profile at login.

The .bashrc is ubuntu is complicated and (at least was) partially buggy. Users should use .bash_profile for their own settings, so it's important that it work properly.

Revision history for this message
Andreas Braml (a-strich-b) wrote :

You should be able to check if the Gnome session picks up .bash_profile by starting an xterm, I guess. Could you please try and report back?

Changed in gnome-terminal:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!.

Changed in gnome-terminal:
status: Incomplete → Invalid
Revision history for this message
Reuben Firmin (reubenf) wrote :

Come on guys, it's an easy bug to verify, and it's serious. Closing it doing nobody a favor. I don't use GNOME on a regular basis, so I can't verify for you.

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.