Cannot launch cursor without --no-sandbox

I am running Ubuntu 24.04.1, and I am unable to run cursor without including the flag --no-sandbox when opening it from the CLI. This blocks me from being able to open cursor from a dock icon.

More problematically, it seems to make it impossible for me to update cursor. The auto-update suggestions just close the browser, but when I re-open the version has not updated. Is there a way I can execute the updates from the command line so I can manually include the --no-sandbox flag as well?

1 Like

Summary: Run the following command and reboot.

echo 'kernel.apparmor_restrict_unprivileged_userns = 0' | 
  sudo tee /etc/sysctl.d/20-apparmor-donotrestrict.conf

As described in this post, you must disable Ubuntu’s AppArmor user namespace creation restrictions.

A more elegant way, would be to create an AppArmor profile but that breaks the “download and run” idea of AppImages.

The following AppArmor profile works for me.

# This profile allows the Cursor AppImage to run without AppArmor's
# unprivileged user namespace restrictions.

# You can copy this content to a new file:
# sudo nano /etc/apparmor.d/appimage.cursor

abi <abi/4.0>,
include <tunables/global>

profile appimage.cursor /**/Cursor-*.AppImage flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/appimage.cursor>
}

Enable the profile after saving.

sudo apparmor_parser -r /etc/apparmor.d/appimage.cursor