getcursor / cursor

The AI Code Editor
https://cursor.com
23.93k stars 1.5k forks source link

Can't Install "cursor" command in KDE neon Linux #1402

Open RanuDewantara opened 5 months ago

RanuDewantara commented 5 months ago

Dear, Cursor team. I have an error when I try to use Cursor Code Editor. I can't install "cursor" command when I started it. I'm using KDE neon Linux (Ubuntu-based). Please fix this error or help me to install it Screenshot_20240417_222734

rcrichton commented 5 months ago

I'm running Ubuntu 22.04 and I have the same issue.

RanuDewantara commented 5 months ago

I'm running Ubuntu 22.04 and I have the same issue.

KDE neon is based on Ubuntu 22.04 LTS. So we have a same error when we use Cursor.

mvavassori commented 1 month ago

It's still a problem months later on Ubuntu 24.04

Louis-Eiden commented 1 week ago

Have the same Problem I use this as a workaround.

  1. Create a Shell script for the cursor command
sudo tee /usr/local/bin/cursor > /dev/null << EOF
#!/bin/bash

# Get the current directory
current_dir=\$(pwd)

# Launch Cursor with the current directory and any additional arguments
/path/to/Cursor/cursor.appimage "\$current_dir" "\$@"
EOF
  1. Make it execturable
sudo chmod +x /usr/local/bin/cursor
  1. Add /usr/local/bin to PATH if it's not already there
if [[ ":$PATH:" != *":/usr/local/bin:"* ]]; then
    echo 'export PATH=$PATH:/usr/local/bin' >> ~/.bashrc
    source ~/.bashrc
fi

The "Cursor" command has been set up. You may need to restart your terminal or run 'source ~/.bashrc' for changes to take effect. It now opens cursor with the current directory set as the project directory. Just open the terminal in your project directory, enter "cursor" and hit enter.