Skip to content

Conversation

@baduhai
Copy link
Contributor

@baduhai baduhai commented Nov 11, 2025

This pr adds a desktop file for the claude-desktop package. The desktop package alse makes the program handle the claude:// uri.

@Mic92
Copy link
Member

Mic92 commented Nov 11, 2025

Interesting bug you triggered in nix:

terminate called after throwing an instance of 'boost::wrapexceptboost::io::too_few_args'

@baduhai
Copy link
Contributor Author

baduhai commented Nov 11, 2025

Interesting bug you triggered in nix:

The true power of vibe coding.

@Mic92 Mic92 force-pushed the claude/add-desktop-file-uri-handler-011CV2EdMBPhK5SCUVcp7JFU branch from 28cbc1f to 08d39d5 Compare November 12, 2025 13:14
# Install icon
mkdir -p $out/share/icons/hicolor/scalable/apps
cp ${icon} $out/share/icons/hicolor/scalable/apps/claude-desktop.svg
Copy link
Contributor Author

@baduhai baduhai Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After manual review, this line (194) is the culprit. Perhaps the icon path has a character boost really doesn't like when interpolating nix to bash?

@baduhai
Copy link
Contributor Author

baduhai commented Nov 12, 2025

Looks like the checks are now passing, the latest commit uses the icon available in the installer's exe, which is better than fetching an svg from Wikimedia anyway.

7z x -y $src -o./extracted
# Extract and convert icon to multiple PNG sizes
if [ -f ./extracted/setupIcon.ico ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot we don't need this code here and than we loop over icons in the installPhase again. Just do the conversion in install phase in one loop. Also use graphicsmagic instead of imagemagic.

- Add desktop entry with MIME type handler for claude:// URIs
- Extract and convert icon from Windows installer to multiple PNG sizes
- Use GraphicsMagick for icon conversion (lighter than ImageMagick)
- Consolidate icon conversion and installation into single loop in installPhase
- Install icons to standard hicolor theme directories
- Skip low-quality small icons (16x16, 32x32)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@baduhai baduhai force-pushed the claude/add-desktop-file-uri-handler-011CV2EdMBPhK5SCUVcp7JFU branch from b9d8210 to 8007a4e Compare November 12, 2025 16:28
@Mic92 Mic92 added this pull request to the merge queue Nov 13, 2025
Merged via the queue into numtide:main with commit dc9658b Nov 13, 2025
2 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