diff --git a/scripts/install_emacs_macos.sh b/scripts/install_emacs_macos.sh index b261fa8..0e48001 100755 --- a/scripts/install_emacs_macos.sh +++ b/scripts/install_emacs_macos.sh @@ -43,7 +43,8 @@ fi # --- [3/7] Zoom accessibility patch --- echo -e "${GREEN}[3/7] Zoom accessibility patch...${NC}" -PATCH_FILE=~/.config/doom/patches/0001-ns-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +PATCH_FILE="${SCRIPT_DIR}/../patches/0001-ns-implement-AXBoundsForRange-for-macOS-Zoom-cursor-.patch" cd ~/src/emacs if grep -q UAZoomChangeFocus src/nsterm.m 2>/dev/null; then echo " Patch already applied, skipping"