Bug 450987

Summary: '--new-tab' does not inherit environment variables
Product: [Applications] konsole Reporter: Naotaka Horiguchi <naotaka>
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Naotaka Horiguchi 2022-03-01 02:00:52 UTC
SUMMARY

A new shell by konsole inherit other tab's environment instead of the parent shell.

STEPS TO REPRODUCE
1. close all of konsole and open other window-terminal (like xterm).
2. do "export AAA=1" to set environment at the other window-terminal.
3. do "konsole --new-tab"
4. confirm the "AAA" variable by "echo $AAA" at the new konsole window. it will be 1 - correct.
5. do "export AAA=2" to set another value at the other window-terminal.
6. and, do "konsole --new-tab" again.
7. confirm the "AAA" variable by "echo $AAA" at the new konsole window. it is still 1 - wrong.

OBSERVED RESULT
The new shell seams to inherit environment from the konsole process instead of the executing process.

EXPECTED RESULT
The "AAA" value should be 2 at step 7.

SOFTWARE/OS VERSIONS
Linux: CentOS 7.9
Qt: 4.8.7
KDE Development Platform: 4.14.8
Konsole: 2.10.5

ADDITIONAL INFORMATION