Bug 450987 - '--new-tab' does not inherit environment variables
Summary: '--new-tab' does not inherit environment variables
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: tabbar (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-01 02:00 UTC by Naotaka Horiguchi
Modified: 2022-03-01 02:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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