summaryrefslogtreecommitdiff
path: root/xdgmenumaker/debian/postinst
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-01-13 14:14:10 +0000
committerB Stack <bgstack15@gmail.com>2020-01-13 14:14:10 +0000
commita63b8381490cfad4df5b9f4677954dcff92b480f (patch)
treec6862acd465d9270c68cfc47918f36e08a10d77b /xdgmenumaker/debian/postinst
parentimprove debian/watch files for many packages (diff)
parentadd dpkg-trigger function to xdgmenumaker (diff)
downloadstackrpms-a63b8381490cfad4df5b9f4677954dcff92b480f.tar.gz
stackrpms-a63b8381490cfad4df5b9f4677954dcff92b480f.tar.bz2
stackrpms-a63b8381490cfad4df5b9f4677954dcff92b480f.zip
Merge branch 'xdgmenumaker-bump' into 'master'
add xdgmenumaker See merge request bgstack15/stackrpms!113
Diffstat (limited to 'xdgmenumaker/debian/postinst')
-rw-r--r--xdgmenumaker/debian/postinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/xdgmenumaker/debian/postinst b/xdgmenumaker/debian/postinst
new file mode 100644
index 0000000..bcb1008
--- /dev/null
+++ b/xdgmenumaker/debian/postinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+# xdgmenumaker postinst
+
+case "$1" in
+ triggered)
+ Xvfb :18 &
+ result=$!
+ export DISPLAY=:18
+ for word in fluxbox ;
+ do
+ /usr/bin/xdgmenumaker -f "${word}" -i > "/etc/xdgmenumaker/${word}" 2>/dev/null
+ done
+ kill $result
+ ;;
+ *)
+ :
+ ;;
+esac
bgstack15