Skip to content

Instantly share code, notes, and snippets.

@flameleo11
Created November 8, 2024 08:07
Show Gist options
  • Save flameleo11/04997f7057be0ba4f75529b8a2da1a3e to your computer and use it in GitHub Desktop.
Save flameleo11/04997f7057be0ba4f75529b8a2da1a3e to your computer and use it in GitHub Desktop.
Cursor Editor AppImage - Replaces VS Code on Linux without symlinks, handles auto-updates seamlessly
#!/bin/bash
start_appimage() {
APP_DIR="$1"
APP_PATH=$(find "$APP_DIR" -name "*.AppImage" -type f | head -n 1)
chmod +x "$APP_PATH"
"$APP_PATH" &
}
start_appimage "/drive_d/app/cursor"
@flameleo11
Copy link
Author

Cursor AppImage Launcher
cursor-editor-appimage-auto-launcher.sh

======================

A shell script to automatically launch the latest version of Cursor editor (AppImage)

Key Features:

  • Auto-detects newest Cursor AppImage
  • Handles version updates seamlessly
  • Replaces VS Code without symlinks

Note: Why Not Symlinks?
Symlinks break after Cursor auto-updates due to
new AppImage filenames being generated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment