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'
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!"
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!"
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!"
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!"