cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Cursor-0.48.7 cannot launch on ubuntu 24.04

Open Lancelotmay opened this issue 8 months ago • 4 comments

Error:

./Cursor-0.48.7-x86_64.AppImage --no-sandbox 
[7690:0403/120727.062548:ERROR:node_bindings.cc(380)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[7690:0403/120727.062607:ERROR:node_bindings.cc(380)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
out_of_range was thrown in -fno-exceptions mode with message "basic_string"[1]    7690 IOT instruction (core dumped)  ./Cursor-0.48.7-x86_64.AppImage --no-sandbox

Or

env XDG_DATA_DIRS=/usr/share:/usr/local/share ./Cursor-0.48.7-x86_64.AppImage --no-sandbox
[11103:0403/121518.129772:ERROR:node_bindings.cc(380)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[11103:0403/121518.129831:ERROR:node_bindings.cc(380)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
out_of_range was thrown in -fno-exceptions mode with message "basic_string"[1]    11103 IOT instruction (core dumped)  env XDG_DATA_DIRS=/usr/share:/usr/local/share ./Cursor-0.48.7-x86_64.AppImage

environment:

  • Ubuntu 24.04.2 LTS kernal 6.11.0-21-generic
  • wayland
  • gdm3
  • gnome

Lancelotmay avatar Apr 03 '25 11:04 Lancelotmay

I encountered the same issue. Here's a workaround that worked for me (However, I think this should be fixed from the root by developers at the end):

  1. Make the AppImage executable and extract its contents:

    chmod +x Cursor-0.48.7-x86_64.AppImage
    ./Cursor-0.48.7-x86_64.AppImage --appimage-extract
    
  2. Rename the extracted folder for convenience:

    mv squashfs-root/ cursor
    
  3. Fix permissions for the Chrome sandbox:

    sudo chown root:root cursor/usr/share/cursor/chrome-sandbox
    sudo chmod 4755 cursor/usr/share/cursor/chrome-sandbox
    
  4. Run Cursor:

    ./cursor/AppRun
    
  5. (Optional) Create a symbolic link to launch it from anywhere:

    sudo ln -s $(pwd)/cursor/AppRun /usr/local/bin/cursor
    

    After that, you can run cursor directly from the terminal.

mostafa1993 avatar Apr 03 '25 16:04 mostafa1993

This is annoying. Please fix it!

suchwerk avatar Apr 07 '25 06:04 suchwerk

I encountered the same issue. Here's a workaround that worked for me (However, I think this should be fixed from the root by developers at the end):

  1. Make the AppImage executable and extract its contents: chmod +x Cursor-0.48.7-x86_64.AppImage ./Cursor-0.48.7-x86_64.AppImage --appimage-extract

  2. Rename the extracted folder for convenience: mv squashfs-root/ cursor

  3. Fix permissions for the Chrome sandbox: sudo chown root:root cursor/usr/share/cursor/chrome-sandbox sudo chmod 4755 cursor/usr/share/cursor/chrome-sandbox

  4. Run Cursor: ./cursor/AppRun

  5. (Optional) Create a symbolic link to launch it from anywhere: sudo ln -s $(pwd)/cursor/AppRun /usr/local/bin/cursor

    After that, you can run cursor directly from the terminal.

THANKS mostafa1993!!

widomin avatar Apr 09 '25 18:04 widomin

same problem

 OS: Ubuntu 24.10 oracular
 Kernel: x86_64 Linux 6.11.0-21-generic
 Shell: zsh 5.9
 DE: KDE
 WM: KWin

towhidzei avatar Apr 19 '25 13:04 towhidzei