summaryrefslogtreecommitdiff
path: root/xdgmenumaker/debian/postinst
diff options
context:
space:
mode:
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