Repository navigation
sysmon: fix wrong process icons - #4140
Conversation
Process names went through the app id search, whose last step matches parts of words, so sh got any app with "share" in its Exec line. Look process names up exactly instead, and let a process without an icon show the one of its closest parent that has one. Only the icon comes from the parent; the row keeps the process's own name.
|
/claude review |
Claude reviewOne retained-memory issue. The rest looks good.
|
The icon lookup kept the last process list after DgopService released it. Drop it whenever the list is emptied, which also covers a bar widget keeping polling active.
|
/claude review |
Claude reviewThe earlier retained-memory issue is fixed. One new issue: the icon cache can go stale.
|
Reset the icon cache when the icon theme or app id substitutions change. Programs replaced by an update report a path ending in " (deleted)", and scripts or versioned binaries have an executable name unrelated to the process name, so strip the suffix and try the process name first like before, which also keeps its substitutions working.
|
The icons now update when the icon theme or an app id substitution changes. Ran my own claude review to counter the next one and also fixed a bug where programs replaced by an update lost their icon until they restarted, and processes are looked up by their shown name again, so substitutions on that name work like before. |
|
/claude review |
Claude reviewBoth earlier findings are fixed. No new issues found. |
port 2.1 (cherry picked from commit c4b6303)
Description
The system monitor could show the wrong app icon for a process, because process names went through a search that also matches parts of words. For example
shcould show an IntelliJ or CLion logo. Process names are now matched exactly.A process without an icon of its own now shows the icon of its closest parent, so a command run in a terminal shows the terminal's icon instead of a letter. The name in the row stays the process's own.
Also fixes a big performance issue when scrolling the process list
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings