add a pacman hook
This commit is contained in:
parent
40c6a3ed24
commit
3c402bfd4e
2 changed files with 13 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -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:
|
||||||
|
|
10
pacman.d/hooks/stop-wine-associations.hook
Normal file
10
pacman.d/hooks/stop-wine-associations.hook
Normal 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'
|
Loading…
Reference in a new issue