Opening a new tab changes environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce
1. Open the file manager
2. Right click -> Open in Terminal
3. In the terminal type "echo $USER", then press enter. The user name is printed in the line below.
5. Right click in the terminal, select New Tab.
6. In the terminal type "echo $USER", then press enter. An empty line is printed.
Expected result: in step 6 the user name should be printed.
There are many other environment variables affected. As a result many programs can't be executed or don't behave properly in the second tab.
When the terminal is launched from the dash, new tabs work as expected. Only terminals launched from nautilus are affected. I tried to file this against nautilus-
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: gnome-terminal 3.38.1-1ubuntu1
ProcVersionSign
Uname: Linux 5.13.0-16-generic x86_64
ApportVersion: 2.20.11-0ubuntu69
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Tue Oct 5 19:31:06 2021
InstallationDate: Installed on 2020-05-05 (518 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: gnome-terminal
UpgradeStatus: No upgrade log present (probably fresh install)