Repository navigation
fix(agent): refresh the icon theme after a Linux first install - #1600
Merged
Merged
Conversation
A running GNOME Shell (and any GTK 3 process) rescans the hicolor theme only when the mtime of the theme directory itself changes. When ~/.local/share/icons/hicolor/256x256/apps already exists, writing the Maple Work icon into it leaves hicolor untouched, so the app menu shows a fallback gear until the next login. Bump hicolor's mtime after the integration files are written, the same as xdg-icon-resource's touch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning
approved these changes
Nov 13, 2026
AnthonyRonning
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 29cd249. No blocking findings. The icon-theme refresh runs after integration writes within the existing rollback handler. CI is green. Focused Dev/Prod installer checks covered fresh and existing icon directories, receipts, reinstall refusal, and rollback on theme refresh failure. Live GNOME behavior was not independently exercised; local checks ran on macOS with the Linux rename primitive substituted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
User report: Maple Work 0.0.23 on Ubuntu 24.04 (GNOME Shell 46, Wayland). After
install.sh, the app menu showed a gear instead of the Maple Work logo until the next login.This happens when
~/.local/share/icons/hicolor/256x256/appsalready exists, for example because another app put an icon there. A running GNOME Shell or GTK 3 process rescans the hicolor theme only when the modification time of thehicolordirectory itself changes. Adding a file to an existing size directory does not change that time. The reporter confirmed that runningtouch ~/.local/share/icons/hicolormade the logo appear.Change
After
linux-install.pywrites the integration files, it callsos.utime(~/.local/share/icons/hicolor). This is the sametouchthatxdg-icon-resourcedoes. The installer has already checked that the directory exists and that the user owns it.Verification
install()with a synthetic bundle into a temporary home wherehicolor/256x256/appsalready exists. On master thehicolormtime does not change; on this branch it does.just ci-lintandjust ci-testfor Agent) passed.touch.The related icon-size mismatch (a 512x512 PNG in
256x256/) is tracked separately in #1599.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.