Inital commit
This commit is contained in:
commit
098191f0db
2 changed files with 26 additions and 0 deletions
16
PKGBUILD
Normal file
16
PKGBUILD
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Maintainer: Michael Hübner <michaelh.95@t-online.de>
|
||||
|
||||
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/"
|
||||
}
|
10
stop-wine-associations.hook
Normal file
10
stop-wine-associations.hook
Normal file
|
@ -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
|
Loading…
Reference in a new issue