Double title bars on Cusor in Linux (Fedora, Ubuntu)

Create script file in Cursor’s image file directory
and paste the bash code into it and last execute it.

#!/bin/bash

# Step 1: Extract the AppImage
./Cursor.AppImage --appimage-extract

# Step 2: Define the target file path
TARGET_FILE="squashfs-root/resources/app/out/main.js"

# Step 3: Ensure the target file exists
if [ -f "$TARGET_FILE" ]; then
    # Modify the file
    sed -i 's/,minHeight/,frame:false,minHeight/g' "$TARGET_FILE"
else
    echo "Error: $TARGET_FILE not found!"
    exit 1
fi

# Step 4: Install appimagetool if not found
if ! command -v appimagetool &> /dev/null; then
    echo "appimagetool not found! Installing..."
    wget -qO appimagetool "https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-$(uname -m).AppImage"
    chmod +x appimagetool
    sudo mv appimagetool /usr/local/bin/
fi

# Step 5: Detect system architecture dynamically
ARCH=$(uname -m)

# Step 6: Repackage the AppImage
ARCH=$ARCH appimagetool squashfs-root Cursor.AppImage

Create File:

nano script.sh

Execute:

chmod +x script.sh
./script.sh