add a pacman hook

This commit is contained in:
Mylloon 2023-05-01 13:55:08 +02:00
parent 40c6a3ed24
commit 3c402bfd4e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 13 additions and 0 deletions

View file

@ -104,6 +104,9 @@ sync-arch:
# VSCodium # VSCodium
@$(WGET) $(REPO_SRC)/.config/VSCodium/product.json -O $(HOME)/.config/VSCodium/product.json @$(WGET) $(REPO_SRC)/.config/VSCodium/product.json -O $(HOME)/.config/VSCodium/product.json
# Pacman hooks
@$(WGET) $(REPO_SRC)/pacman.d/hooks/stop-wine-associations.hook -P /etc/pacman.d/hooks
# Windows Subsystem for Linux specific # Windows Subsystem for Linux specific
sync-wsl: sync-wsl:

View file

@ -0,0 +1,10 @@
[Trigger]
Operation = Install
Operation = Upgrade
Type = Path
Target = usr/share/wine/wine.inf
[Action]
Description = Stopping Wine from hijacking file associations...
When = PostTransaction
Exec = /bin/sh -c '/usr/bin/grep -q "HKCU,\"Software\\\Wine\\\FileOpenAssociations\",\"Enable\",2,\"N\"" /usr/share/wine/wine.inf || /usr/bin/sed -i "s/\[Services\]/\[Services\]\nHKCU,\"Software\\\Wine\\\FileOpenAssociations\",\"Enable\",2,\"N\"/g" /usr/share/wine/wine.inf'