Bug 480470 - "Start in same directory as current session" doesn't work when using DistroBox or Toolbx
Summary: "Start in same directory as current session" doesn't work when using DistroBo...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-29 05:17 UTC by poperigby
Modified: 2024-01-29 05:17 UTC (History)
1 user (show)

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 poperigby 2024-01-29 05:17:27 UTC
SUMMARY
If I have my profile's command as `distrobox enter <name of container>` or `toolbox enter <name of container>, change to a directory from a tab using that profile, then open another tab using that profile, the new tab opens in my home directory. This doesn't happen when the profile's command is set to nothing.

Starting a new tab in a profile without toolbox/distrobox changing directories, and then opening a new tab in a profile with toolbox/distrobox does work correctly though

STEPS. TO REPRODUCE
1. Run `toolbox create -i ghcr.io/poperigby/toolbox toolbox`
2. Set profile's command as `toolbox enter toolbox`
3. Open a new tab with that profile
4. Change directories to something besides the home directory
5. Open another tab with that profile

OBSERVED RESULT
The other tab opens in my home directory

EXPECTED RESULT
The other tab opens in the same directory as the previous tab

SOFTWARE/OS VERSIONS
Operating System: Fedora Kinoite 39
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.12
Kernel Version: 6.6.12-200.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Manufacturer: ASUS

ADDITIONAL INFORMATION

Full profile configuration file:

```
[Appearance]
ColorScheme=Gruvbox
Font=JetBrainsMonoNL Nerd Font,11,-1,5,50,0,0,0,0,0

[General]
Command=toolbox enter toolbox
Environment=TERM=xterm-256color,COLORTERM=truecolor
Name=Toolbox
Parent=FALLBACK/

[Interaction Options]
OpenLinksByDirectClickEnabled=true
UnderlineFilesEnabled=true

[Scrolling]
HighlightScrolledLines=false
HistorySize=10000

[Terminal Features]
BlinkingCursorEnabled=true
```