From 098191f0dbac6a0ef19484e5975ccb4eda440a22 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Mon, 30 Mar 2020 08:11:34 +0200 Subject: [PATCH] Inital commit --- PKGBUILD | 16 ++++++++++++++++ stop-wine-associations.hook | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 PKGBUILD create mode 100644 stop-wine-associations.hook 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