[konsole] [Bug 470074] New: Tab title is incorrect, appears to incorrectly parse /proc/$PID/stat for the name of a process
Clayton Townsend II
bugzilla_noreply at kde.org
Sun May 21 02:45:17 BST 2023
https://bugs.kde.org/show_bug.cgi?id=470074
Bug ID: 470074
Summary: Tab title is incorrect, appears to incorrectly parse
/proc/$PID/stat for the name of a process
Classification: Applications
Product: konsole
Version: 23.04.1
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: general
Assignee: konsole-devel at kde.org
Reporter: clayton at claytontii.com
Target Milestone: ---
Created attachment 159160
--> https://bugs.kde.org/attachment.cgi?id=159160&action=edit
observed result of a incorrectly parsed executable
Run the following in a terminal window
1. cp $(which sleep) brokentab\(title
2. ./brokentab\(title 10000
OBSERVED RESULT
the tab title appears to incorrectly parse "(" and uses the rest of entire
result of /proc/$PID/stat after the one in the executable name
see attachment 1
EXPECTED RESULT
tab title should show just the executable name: brokentab(title
I expect the problem to occur here:
https://invent.kde.org/utilities/konsole/-/blob/807382fabf79e2c63eb6215b64a711ffdf928cad/src/ProcessInfo.cpp#L425
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list