commit 098191f0dbac6a0ef19484e5975ccb4eda440a22 Author: hodasemi Date: Mon Mar 30 08:11:34 2020 +0200 Inital commit diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..409ea00 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,16 @@ +# Maintainer: Michael Hübner + +pkgname=prevent-wine-file-association +pkgver=0.1.1 +pkgrel=1 +pkgdesc="A pacman hook for preventing wine from creating any file associations" +arch=('i686' 'x86_64') +license=('MIT') +depends=('pacman') +makedepends=() +source=() +sha256sums=() + +package () { + install -Dm 755 "../stop-wine-associations.hook" -t "$pkgdir/etc/pacman.d/hooks/" +} diff --git a/stop-wine-associations.hook b/stop-wine-associations.hook new file mode 100644 index 0000000..72b6873 --- /dev/null +++ b/stop-wine-associations.hook @@ -0,0 +1,10 @@ +[Trigger] +Type = Path +Operation = Install +Operation = Upgrade +Target = usr/share/wine/wine.inf + +[Action] +Description = Stopping Wine from hijacking file associations... +When = PostTransaction +Exec = /usr/bin/sed -i 's/winemenubuilder.exe -a -r/winemenubuilder.exe -r/g' /usr/share/wine/wine.inf