Register claude-cli:// URI handler on ringtail for Claude Code OAuth
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fb1e8ff672
commit
99f78c8745
2 changed files with 17 additions and 0 deletions
1
docs/changelog.d/+claude-code-uri-handler.bugfix.md
Normal file
1
docs/changelog.d/+claude-code-uri-handler.bugfix.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Register `claude-cli://` URI scheme handler on ringtail so Claude Code's OAuth browser callback completes instead of hanging Librewolf.
|
||||||
|
|
@ -361,6 +361,22 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Claude Code OAuth callback handler (claude-cli:// URI scheme)
|
||||||
|
xdg.desktopEntries.claude-code-url-handler = {
|
||||||
|
name = "Claude Code URL Handler";
|
||||||
|
exec = "/run/current-system/sw/bin/mise exec -- claude --handle-uri %u";
|
||||||
|
type = "Application";
|
||||||
|
noDisplay = true;
|
||||||
|
mimeType = [ "x-scheme-handler/claude-cli" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"x-scheme-handler/claude-cli" = [ "claude-code-url-handler.desktop" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.fuzzel = {
|
programs.fuzzel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue