From 4802f19205ac6e231f84dcd2498e0e819fde7d9e Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Sat, 22 May 2021 23:07:02 -0400 Subject: [PATCH] Add pacman hooks to patch firefox --- config.yaml | 5 +++++ pacman_hooks/firefox.hook | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 pacman_hooks/firefox.hook diff --git a/config.yaml b/config.yaml index bd6c0e3..827be91 100644 --- a/config.yaml +++ b/config.yaml @@ -274,6 +274,10 @@ dotfiles: src: ./openbox/theme/ link: link + pacman_hooks: + src: ./pacman_hooks/ + dst: /etc/pacman.d/hooks/ + prusa_slicer: dst: ~/.config/PrusaSlicer/ src: ./PrusaSlicer/ @@ -515,6 +519,7 @@ profiles: dotfiles: - etc - interception + - pacman_hooks Zeus: include: diff --git a/pacman_hooks/firefox.hook b/pacman_hooks/firefox.hook new file mode 100644 index 0000000..007c3bb --- /dev/null +++ b/pacman_hooks/firefox.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation=Install +Operation=Upgrade +Operation=Remove +Type=Package +Target=firefox + +[Action] +Description=Re-apply glacambre/firefox-patches +When=PostTransaction +Exec=/bin/sh -c 'perl -i -pne 's/reserved="true"/ /g' /usr/lib/firefox/browser/omni.ja && find /home/marcel/.cache/mozilla/firefox -type d -name startupCache | xargs rm -rf'