Repository navigation
sysmon: add more logos and show correct dux app names - #4141
Conversation
|
/claude review |
Claude reviewLooks good apart from one memory issue.
|
|
/claude review |
Claude reviewThe earlier memory issue is fixed. One new problem: the icon cache goes stale.
|
|
Same fix as in #4140, the icons now follow the icon theme and app id substitutions. |
|
/claude review |
Claude reviewNo issues found. The stale snapshot and the stale icon theme cache from earlier runs are both fixed. |
dms and the compositors have no desktop entry, so they showed a letter even though the shell ships their logos. Use those, and map programs whose theme icon goes by another name: jetbrainsd, docker, node and versioned interpreters like python3.14. Apps built on Quickshell run qs from their own binary, often without a window. Recognize that pattern and give both processes the name and icon of the desktop entry that runs the binary, so it covers any such app.
Themes spell the same icon differently, so a row now lists any number of programs and any number of icon names, best first, and each program takes the first one the theme has. Logos the shell ships are the row's last resort. Adding a program or a spelling is one line.
Clear the launcher set along with the process list, it is built from the same snapshot.
Carries the icon cache fixes from the process icons branch. Also stop caching a missed shell app lookup: it depends on the current process list, which can be limited or not hold the app's qs yet, and a cached miss kept the raw program name for as long as polling ran.
1764acf to
a1b716a
Compare
port 2.1 (cherry picked from commit 153f05b)
Description
Builds on #4140
The dms process and the compositors have no desktop entry, so the system monitor showed a letter for them even though the shell already ships their logos. They now use those logos too for better visualization.
Some programs also have a theme icon under another name, and themes spell those names differently. For those there is now a small table: each row lists any number of programs and any number of icon names, best first, and a program takes the first one the theme has. The list holds what I found on my own system so far (docker, node, jetbrainsd) and can be expanded easily later.
Apps like Dux Files and Dux Calendar showed up as
qsanddfilesordcalwhile they run in the background. Both processes now show the app's name and icon. This goes by how the app starts rather than a list of names, so it also works for new and third-party apps that have a desktop entry.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