summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD6
-rwxr-xr-xwhatsapp-nativefier-notray2
-rw-r--r--whatsapp-nativefier-notray.hook7
4 files changed, 14 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d91fed23bba..68808a2a399 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
pkgbase = whatsapp-nativefier-notray-hook
pkgdesc = Pacman hook to disable whatsapp-nativefier tray after install or upgrade.
pkgver = 1
- pkgrel = 1
+ pkgrel = 2
install = whatsapp-nativefier-notray-hook.install
arch = any
license = MIT
depends = whatsapp-nativefier
source = whatsapp-nativefier-notray.hook
source = whatsapp-nativefier-notray
- sha1sums = 7288399ae0ece37b1e1d0b8515145bcd24c005c6
- sha1sums = bd27f755644f15ea26fbbc8004e62f93f852fefe
+ sha1sums = 019bc488c1b5ebf402a9e0a6e47eaf9565f20411
+ sha1sums = 8ad521854a407a848b21db10b557491240a60f84
pkgname = whatsapp-nativefier-notray-hook
-
diff --git a/PKGBUILD b/PKGBUILD
index 2c57b918cf7..7a17ece05c0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,15 @@
pkgname=whatsapp-nativefier-notray-hook
pkgver=1
-pkgrel=1
+pkgrel=2
pkgdesc="Pacman hook to disable whatsapp-nativefier tray after install or upgrade."
arch=("any")
install=whatsapp-nativefier-notray-hook.install
license=("MIT")
depends=('whatsapp-nativefier')
source=(whatsapp-nativefier-notray.hook whatsapp-nativefier-notray)
-sha1sums=("7288399ae0ece37b1e1d0b8515145bcd24c005c6"
- "bd27f755644f15ea26fbbc8004e62f93f852fefe")
+sha1sums=("019bc488c1b5ebf402a9e0a6e47eaf9565f20411"
+ "8ad521854a407a848b21db10b557491240a60f84")
package() {
install -m755 -d "${pkgdir}/usr/share/libalpm/hooks"
diff --git a/whatsapp-nativefier-notray b/whatsapp-nativefier-notray
index 6e308e9664a..ec4a89f36a9 100755
--- a/whatsapp-nativefier-notray
+++ b/whatsapp-nativefier-notray
@@ -1,3 +1,3 @@
#!/bin/bash
-sed -i 's/"tray":true/"tray":false/g' /opt/whatsapp-nativefier/resources/app/nativefier.json
+sed -i 's/"tray": "true",/"tray": "false",/g' /opt/whatsapp-nativefier/resources/app/nativefier.json
diff --git a/whatsapp-nativefier-notray.hook b/whatsapp-nativefier-notray.hook
index ac22b98e706..95f164ddd8b 100644
--- a/whatsapp-nativefier-notray.hook
+++ b/whatsapp-nativefier-notray.hook
@@ -4,6 +4,13 @@ Operation = Install
Operation = Upgrade
Target = whatsapp-nativefier
+[Trigger]
+Type = Package
+Operation = Install
+Operation = Upgrade
+Target = whatsapp-nativefier-notray-hook
+
+
[Action]
Description = Disabling tray...
When = PostTransaction