-
Notifications
You must be signed in to change notification settings - Fork 27
claude-desktop: add desktop file & uri handler #917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
claude-desktop: add desktop file & uri handler #917
Conversation
|
Interesting bug you triggered in nix: terminate called after throwing an instance of 'boost::wrapexceptboost::io::too_few_args' |
The true power of vibe coding. |
28cbc1f to
08d39d5
Compare
packages/claude-desktop/package.nix
Outdated
| # Install icon | ||
| mkdir -p $out/share/icons/hicolor/scalable/apps | ||
| cp ${icon} $out/share/icons/hicolor/scalable/apps/claude-desktop.svg |
There was a problem hiding this comment.
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?
|
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. |
packages/claude-desktop/package.nix
Outdated
| 7z x -y $src -o./extracted | ||
| # Extract and convert icon to multiple PNG sizes | ||
| if [ -f ./extracted/setupIcon.ico ]; then |
There was a problem hiding this comment.
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]>
b9d8210 to
8007a4e
Compare
This pr adds a desktop file for the claude-desktop package. The desktop package alse makes the program handle the claude:// uri.