Skip to content

sysmon: add more logos and show correct dux app names - #4141

Merged
bbedward merged 4 commits into
duxlabs-dev:masterfrom
Conava:sysmon-process-logos
Nov 5, 2026
Merged

bbedward merged 4 commits into
duxlabs-dev:masterfrom
Conava:sysmon-process-logos

Conversation

@Conava

@Conava Conava commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

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 qs and dfiles or dcal while 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

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

@github-actions github-actions Bot added feature ui Quickshell UI under quickshell/ labels Nov 5, 2026
@bbedward

bbedward commented Nov 5, 2026

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Claude review

Looks good apart from one memory issue.

  • The process snapshot stays in memory after the process view closes, quickshell/Modules/ProcessList/ProcessListMetrics.qml:128
    Checked: icon table and asset paths, shell-app detection and entry lookup, icon cache and invalidation, the parent-icon walk, per-poll binding cost, and both call sites. Model: claude-opus-5-5.

@bbedward

bbedward commented Nov 5, 2026

Copy link
Copy Markdown
Member

/claude review

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

The earlier memory issue is fixed. One new problem: the icon cache goes stale.

  • Process icons stay on the old icon theme after a theme switch while anything keeps polling, quickshell/Modules/ProcessList/ProcessListMetrics.qml:170
    Checked: the process snapshot reset in onAllProcessesChanged, the icon table and asset paths, shell-app detection against the dms/dfiles launch layout and the NoDisplay dms entries, icon cache invalidation, the parent-icon walk, null live in the detail strip, and both call sites. Model: claude-opus-5-5.

@Conava

Conava commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Same fix as in #4140, the icons now follow the icon theme and app id substitutions.
Also fixed a bug where a dux app could keep its raw program name when its qs process wasn't in the list yet.

@bbedward

bbedward commented Nov 5, 2026

Copy link
Copy Markdown
Member

/claude review

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The stale snapshot and the stale icon theme cache from earlier runs are both fixed.
Checked: the process snapshot reset on an empty list, icon cache invalidation on IconThemeService._iconPaths and appIdSubstitutions, uncached shell-app misses in appEntry, the qs launcher detection and entry lookup, the icon table and asset paths, the parent-icon walk, and both call sites. Model: claude-opus-5-5.

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.
@bbedward
bbedward force-pushed the sysmon-process-logos branch from 1764acf to a1b716a Compare November 5, 2026 18:14
@bbedward
bbedward merged commit 153f05b into duxlabs-dev:master Nov 5, 2026
5 checks passed
dux-ci Bot pushed a commit that referenced this pull request Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants