Skip to content

Instantly share code, notes, and snippets.

@imran-vz
Created November 18, 2024 07:56
Show Gist options
  • Save imran-vz/e09853eaf45a1deb97906a0919898716 to your computer and use it in GitHub Desktop.
Save imran-vz/e09853eaf45a1deb97906a0919898716 to your computer and use it in GitHub Desktop.
Guide to using cursor in linux

Download Cursor

https://downloader.cursor.sh/linux/appImage/x64/

Change into excutable

chmod +x /path/to/cursor.appimage

Move AppImage to Global bin directory.

mv /path/to/cursor.appimage /usr/bin/cursor

Create desktop file

I Keep my .desktop file in ~/.local/share/applications

Let create a cursor.desktop in ~/.local/share/applications

touch ~/.local/share/applications/cursor.desktop

copy paste the below in to the file

[Desktop Entry]
GenericName=Text Editor
Exec=/usr/bin/cursor %F
Icon=~/.local/share/cursor.svg
Type=Application
Name=Cursor
StartupNotify=false
StartupWMClass=Cursor
MimeType=application/x-code-workspace;text/plain;inode/directory;
Actions=new-empty-window;
Keywords=cursor;
Categories=Utility;TextEditor;Development;IDE;
Version=1.0
Comment=Cursor - AI-first code editor

[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/usr/bin/cursor --new-window %F
Icon=~/.local/share/cursor.svg

You can download the icon from https://mintlify.s3-us-west-1.amazonaws.com/cursor/images/logo/app-logo.svg/ move the icon into /.local/share/cursor.svg and it should work with no other change required.

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