summarylogtreecommitdiffstats
path: root/vdhcoapp-user-install.hook
diff options
context:
space:
mode:
authorJames Cuzella2023-09-28 19:46:19 -0600
committerParagoumba2023-09-30 16:21:00 +0200
commitd3143101d9873a2d0f6998d9535e98518780809a (patch)
treeb170075c8e2cbbbe137231ccb9dcafba65f6b61a /vdhcoapp-user-install.hook
parenta86bcc0f7569b5b540384e7323f37e3a454f6ff0 (diff)
downloadaur-d3143101d9873a2d0f6998d9535e98518780809a.tar.gz
Fix user-level post-install & pre-remove hooks
Note: browser plugin will now find the companion app for current user that installed via pacman / yay / AUR-helper
Diffstat (limited to 'vdhcoapp-user-install.hook')
-rw-r--r--vdhcoapp-user-install.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/vdhcoapp-user-install.hook b/vdhcoapp-user-install.hook
new file mode 100644
index 000000000000..a9687896b01e
--- /dev/null
+++ b/vdhcoapp-user-install.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = vdhcoapp-bin
+
+[Action]
+Description = Installing JSON configuration file for current user ...
+When = PostTransaction
+Exec = /bin/sh -c 'sudo -u $SUDO_USER /usr/bin/vdhcoapp install --user'