Repository navigation
Conversation
…the OS keyring Cursor is a VS Code fork, so Electron encrypts GitHub tokens with Chromium os_crypt. On Hyprland, XDG_CURRENT_DESKTOP is not a desktop Electron recognizes, so it cannot identify GNOME Keyring and GitHub login offers "weaker encryption" instead. VS Code already writes password-store=gnome-libsecret into argv.json at install time. Cursor went through the generic package launcher and never got that pin. Give it the same dedicated installer, and migrate existing ~/.cursor/argv.json files without clobbering an explicit password-store.
There was a problem hiding this comment.
Pull request overview
Adds Cursor-specific installation and migration support to enable GNOME Keyring-backed GitHub authentication.
Changes:
- Adds a Cursor installer with keyring and theme configuration.
- Routes menu and default-editor installs through it.
- Migrates existing Cursor configurations and adds tests.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
bin/omarchy-install-editor-cursor |
Adds the Cursor installer. |
bin/omarchy-default-editor |
Routes Cursor installation. |
default/omarchy/omarchy-menu.jsonc |
Updates the Cursor menu action. |
migrations/1787689809.sh |
Migrates existing Cursor settings. |
test/shell.d/cursor-password-store-migration-test.sh |
Tests migration behavior. |
test/shell.d/default-apps-test.sh |
Tests default-editor routing. |
test/shell.d/desktop-entry-launch-test.sh |
Tests installer configuration and launch. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # argv.json pin VS Code writes at install time. Leave an explicit password-store | ||
| # alone so a user who chose "basic" is not silently moved. | ||
|
|
||
| if [[ -d $HOME/.cursor ]] || omarchy-cmd-present cursor; then |
| "password-store": "gnome-libsecret" | ||
| } | ||
| EOF | ||
| elif ! grep -q '"password-store"' "$argv"; then |
| head = text[:idx].rstrip() | ||
| if head.endswith("{") or head.endswith(","): | ||
| insert = '\n "password-store": "gnome-libsecret"\n' | ||
| else: | ||
| insert = ',\n "password-store": "gnome-libsecret"\n' |
|
Great addition! The One related issue worth catching here: on Arch Linux, Cursor's built-in updater defaults to a Debian/Ubuntu auto-update flow. On a fresh install, Cursor immediately detects newer upstream releases and silently downloads a In # Ensure VSC's own auto-update feature is turned off
printf '{\n "update.mode": "none"\n}\n' > ~/.config/Code/User/settings.jsonWe should add the equivalent to # Ensure Cursor's own auto-update feature is turned off (managed via pacman/AUR)
if [[ ! -f ~/.config/Cursor/User/settings.json ]]; then
printf '{\n "update.mode": "none"\n}\n' > ~/.config/Cursor/User/settings.json
fi(And optionally in the migration script if |
Problem
Signing into GitHub from Cursor on Omarchy shows:
Omarchy already runs GNOME Keyring (
org.freedesktop.secrets). The failure is on the Cursor side: it is an Electron/VS Code fork, and Chromium os_crypt cannot auto-detect GNOME Keyring whenXDG_CURRENT_DESKTOP=Hyprland.VS Code already avoids this by writing
"password-store": "gnome-libsecret"to~/.vscode/argv.jsoninomarchy-install-editor-vscode. Cursor was installed through the genericomarchy-install-and-launchpath and never got that pin.Related: #1015 (VS Code), and the Chromium
--password-store=gnome-libsecretpin inconfig/chromium-flags.conf.Change
omarchy-install-editor-cursor, matching the VS Code installer: package, pin~/.cursor/argv.json, apply the Omarchy theme, launch.omarchy default editor cursorthrough that installer.gnome-libsecretwhenpassword-storeis missing, leave an explicit value (includingbasic) alone.New installs pick this up from the installer. Existing installs pick it up on the next
omarchy update. Cursor still has to be restarted once after the pin.Test plan
bash test/shell.d/cursor-password-store-migration-test.shbash test/shell.d/desktop-entry-launch-test.shbash test/shell.d/default-apps-test.sh./test/all— remaining failures are pre-existing onquattroin this environment (missingomarchy-pkgscheckout, About animation, theme-install URL check)