#!/bin/bash sudo apt install -y tesseract-ocr scrot xdotool x11-utils || { echo "[ERROR] Failed to install tesseract-ocr, scrot, xdotool, or x11-utils." >&2; exit 1; } USER=$1 HOME_DIR="/home/$USER" SERVICE_DIR="$HOME_DIR/.config/systemd/user" echo "Setting up profile-runner service for user: $USER" # Create directory as root mkdir -p $SERVICE_DIR # Create service file cat > $SERVICE_DIR/profile-runner.service <