Commit 08c87eb
Fix: Cursor .desktop file not registering a schema handler for xdg-open, thus not supporting magic link (#17)
* fix: download cursor app image
- Cursor changed their download link behaviour and now how a dynamic HTML page. These changes use HTML scraping instead of jq to grab the download link
- Refactor download info retrieval in cursor.shfix:
* Update cursor script URL in install.sh
- temporary switch to point to my cursor installer script
* fix: FUSE installation and improve AppImage handling
- Updated FUSE installation checks and improved error handling. - Enhanced architecture verification for the Cursor AppImage and added safeguards for execution permissions.
- Ensured that the right binary version is downloaded
* chore: Update cursor script URL in install.sh
- revert to offcial link for pr
* Update cursor.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan
* Fix .desktop file format for xdg-open and backlinks support
Co-authored-by: ZanzyTHEbar <45744329+ZanzyTHEbar@users.noreply.github.com>
* fix: Update cursor.sh to escape proper quotations
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: update cursor.sh to ensure proper file handling with fix
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: Update cursor.sh properly handle special characters in %U with sed
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* chore: Update install script URL to point to my own repository location for personal testing and usage
* chore: Update installation script URLs to point to personal repository for testing
* refactor: Simplify variable assignments in cursor.sh and uninstall.sh for improved readability
* feat: Add extracted installation mode for Cursor, allowing FUSE-free operation
- Introduced INSTALL_MODE variable to toggle between AppImage and extracted modes.
- Implemented functions to handle extracted installations, including downloading, extracting, and creating launcher scripts.
- Updated installation and README scripts to support the new mode, enhancing usability for environments without FUSE support.
* enhance: Improve FUSE installation checks and user feedback in cursor.sh
- Added interactive checks for FUSE installation, providing warnings and installation prompts based on terminal interactivity.
- Updated README to inform users about FUSE2 requirements and installation instructions.
- Refined error handling to ensure the script continues gracefully in non-interactive environments.
* feat: Enhance logging and user feedback across installation scripts
- Introduced color-coded logging functions in cursor.sh and install.sh for improved user experience.
- Updated installation and uninstallation scripts to utilize logging functions for better visibility of actions and errors.
- Refined README to reflect changes in installation methods and provide clearer instructions for users.
- Added pre-push hook and CI workflow to enforce canonical links and maintain repository integrity.
* chore: Update uninstall script URLs in README to reflect new repository location
* fix: broken url and version parsing in fallback cursor.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: With set -e, find returning non-zero for non-existent dirs can abort the script. Guard the find with a directory check and neutralize non-zero status in uninstall.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: Running find on a non-existent icon root will return non-zero under set -e and can terminate the script. Add a directory existence check or tolerate non-zero exit
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: Enhance uninstall script to improve icon removal and cleanup
- Updated icon removal logic to delete all 'cursor' and legacy 'co.anysphere.cursor' icons under the hicolor theme.
- Added cleanup for now-empty directories in the icon path.
- Included a step to refresh the desktop database for improved menu visibility.
- Implemented removal of extracted installation directories and related metadata.
* fix: bug in .desktop file creation where sed created a quoted Exec directive, causing it to fail silently
- Add desktop file reinstallation functionality
- Introduced a new function to reinstall the Cursor desktop file, allowing users to refresh the desktop entry easily.
- Updated the Exec command in the desktop file to remove quotes for better compatibility.
- Enhanced error handling for missing desktop files and added logic to create a minimal desktop entry if extraction fails.
- Ensured the desktop file is updated with the correct icon and MIME type support.
- Added a new command-line option `--reinstall-desktop` for triggering the reinstallation process.
* Fix icon install when hicolor symlinks are broken
* fix: avoid cursor CLI conflict
Rename the installer CLI to cursor-installer and update docs.
Source shared lib.sh in scripts and install it alongside the CLI.
* fix: centralize safe removal helpers
Move safe_remove and validate_path into lib.sh and
reuse them where installer-managed files are removed.
* refactor: share appimage lookup helper
Move find_cursor_appimage into lib.sh and reuse it
in installer and uninstall scripts.
---------
Co-authored-by: Chris Watson <cawatson1993@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent 5ac1ee9 commit 08c87eb
8 files changed
Lines changed: 1155 additions & 181 deletions
File tree
- .githooks
- .github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
33 | 67 | | |
34 | 68 | | |
35 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
36 | 104 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 105 | + | |
40 | 106 | | |
41 | 107 | | |
42 | 108 | | |
| |||
55 | 121 | | |
56 | 122 | | |
57 | 123 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
61 | 128 | | |
62 | 129 | | |
63 | 130 | | |
64 | | - | |
| 131 | + | |
65 | 132 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
70 | 139 | | |
71 | | - | |
| 140 | + | |
| 141 | + | |
72 | 142 | | |
73 | 143 | | |
74 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
75 | 199 | | |
76 | 200 | | |
77 | 201 | | |
| |||
0 commit comments