[konsole] [Bug 391128] Process name change isn’t reflected in tabbar after using exec
Kurt Hindenburg
bugzilla_noreply at kde.org
Sun Sep 10 14:14:37 BST 2023
https://bugs.kde.org/show_bug.cgi?id=391128
Kurt Hindenburg <khindenburg at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
Latest Commit| |https://invent.kde.org/util
| |ities/konsole/-/commit/25f8
| |ebf9b67be936a60e2d45f693913
| |78ce56788
--- Comment #7 from Kurt Hindenburg <khindenburg at kde.org> ---
Git commit 25f8ebf9b67be936a60e2d45f69391378ce56788 by Kurt Hindenburg, on
behalf of Theodore Wang.
Committed on 10/09/2023 at 15:14.
Pushed by hindenburg into branch 'master'.
Periodically check and update ProcessInfo::_name
Currently, there is an issue where 'exec [program]' results in tab
titles not being updated and not showing the process name as [program].
This is probably due to how 'exec' does not result in any change in
pid and simply replaces the current process image with a different one.
Due to a lack of pid changes, Session::updateSessionProcessInfo will not
call ProcessInfo::newInstance, thus not updating the ProcessInfo::_name.
This new change periodically checks and updates the _name of ProcessInfo
through ProcessInfo::readProcessName, which is called by
ProcessInfo::update.
M +5 -0 src/NullProcessInfo.cpp
M +1 -0 src/NullProcessInfo.h
M +149 -67 src/ProcessInfo.cpp
M +7 -0 src/ProcessInfo.h
M +27 -0 src/UnixProcessInfo.cpp
M +17 -0 src/UnixProcessInfo.h
https://invent.kde.org/utilities/konsole/-/commit/25f8ebf9b67be936a60e2d45f69391378ce56788
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list