Skip to content

Fix Windows taskbar pin icon and eliminate compiler warnings - #7

Merged
draugvar merged 5 commits into
draugvar:mainfrom
ethanwheatthin:windows_icon
Jun 18, 2026
Merged

Fix Windows taskbar pin icon and eliminate compiler warnings#7
draugvar merged 5 commits into
draugvar:mainfrom
ethanwheatthin:windows_icon

Conversation

@ethanwheatthin

Copy link
Copy Markdown

Windows uses the Win32 icon resource embedded in the .exe for pinned taskbar shortcuts, the runtime window icon Slint sets is not consulted.

image image

Add winresource as a Windows-only build dependency and embed assets/AppIcon.ico in the binary when present. The CI generates it from the existing AppIcon.icns via ImageMagick before cargo build; local builds without the file skip embedding gracefully.

Platform-specific functions in launch.rs (agent_running, shell_safe_dir, quit_gui) and Terminal::spawn in terminal.rs were reachable on all platforms but only ever called from #[cfg(target_os = "macos")] sites, gate them accordingly.

The now-unreachable Linux and Windows platform::spawn modules in terminal.rs are removed; that spawning logic lives in spawn_in_terminal in launch.rs where working_dir support was added. Gate mod test_util to #[cfg(test)] so test infrastructure is not compiled into release binaries. Remove the stray Mutex import from controller.rs.

Ethan Collins and others added 5 commits June 13, 2026 19:59
The platform::spawn module on macOS pulls Context via use super::{Context, Result, Terminal}.
Narrowing the parent import to only Result broke the macOS build.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ImageMagick on windows-latest lacks the ICNS decoder module.
Python and pip are pre-installed on GitHub runners; Pillow reads
ICNS natively on all platforms.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ethanwheatthin

Copy link
Copy Markdown
Author

@draugvar can we merge this in?

@draugvar

Copy link
Copy Markdown
Owner

@draugvar can we merge this in?

Sure thing!

@draugvar
draugvar merged commit aaa239d into draugvar:main Jun 18, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants