Bug 510557 - Make F5 also refresh the terminal location
Summary: Make F5 also refresh the terminal location
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: panels: terminal (other bugs)
Version First Reported In: 25.08.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Antti Savolainen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-13 08:47 UTC by Antti Savolainen
Modified: 2026-04-20 09:48 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Savolainen 2025-10-13 08:47:15 UTC
SUMMARY
Oftentimes you might have a program running in the integrated terminal while you're browsing files graphically. In these cases when the program stops executing, it will be stuck in the directory the graphical interface was in when the program started. A quick fix for this would be to make the terminal refresh its location when F5 is pressed.
If the terminal could be made to automatically refresh its location when program execution ends, that would be alright too.

STEPS TO REPRODUCE
1. Open htop in the integrated terminal
2. Navigate elsewhere graphically
3. Exit htop

OBSERVED RESULT
Integrated terminal will be where it was when htop execution started

EXPECTED RESULT
Integrated terminal should always follow the graphical view

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.91
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-7600U CPU @ 2.80GHz
Memory: 24 GiB of RAM (23.2 GiB usable)
Graphics Processor: Intel® HD Graphics 620
Manufacturer: LENOVO
Product Name: 20HG0003SG
System Version: ThinkPad T470s
Comment 1 Bug Janitor Service 2026-04-16 08:28:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/1244
Comment 2 Méven 2026-04-20 09:48:32 UTC
Git commit 07baa7bb68d3d3c8ed1f564ea42efa80684b3a23 by Méven Car, on behalf of Antti Savolainen.
Committed on 20/04/2026 at 09:48.
Pushed by meven into branch 'master'.

terminalpanel: allow refreshing the terminal location

When a program is running on front while the graphical view is being changed, that can make the terminal and file view working directories out of sync. I wasn't able to find a signal from Konsole for when the foreground program exits, so having the terminal respond to F5 is the second best thing.

M  +2    -0    src/dolphinmainwindow.cpp
M  +5    -0    src/dolphinmainwindow.h
M  +9    -0    src/panels/panel.cpp
M  +6    -0    src/panels/panel.h
M  +2    -1    src/panels/terminal/terminalpanel.cpp
M  +1    -0    src/panels/terminal/terminalpanel.h

https://invent.kde.org/system/dolphin/-/commit/07baa7bb68d3d3c8ed1f564ea42efa80684b3a23