Bug 458858

Summary: "Open File Manager" does not work as expected when using tmux
Product: [Applications] konsole Reporter: federico
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 22.04.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description federico 2022-09-08 05:12:37 UTC
SUMMARY

When using tmux (https://github.com/tmux/tmux) as login shell, the "Open File Manager" does not open the directory the current shell is, but the directory where tmux has been executed

STEPS TO REPRODUCE
0. Create a profile with /usr/bin/tmux as login shell (optional)
1. Open tmux (either through the nex profile, or by executing tmux directly
2. cd in another folder, like "cd /tmp"
3. click on "File", then "Open File manager"

OBSERVED RESULT
The file manager opens in the home directory (or the directory where tmux has been executed)

EXPECTED RESULT
File manager should open in /tmp, also because echo $PWD return "/tmp"

With midnight commander (mc, https://midnight-commander.org/), when $PWD changes, "Open File manager" opens the file manager in the current directory, not where mc has been executed. 

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.4
Kernel Version: 5.19.0-1-amd64 (64-bit)
Graphics Platform: X11
System Version: Not Applicable

ADDITIONAL INFORMATION