diff options
author | B Stack <bgstack15@gmail.com> | 2020-01-07 16:19:31 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-01-07 16:19:31 -0500 |
commit | 7e9a29f8eef3b55be51b52e9a86ad9e07d3da3fb (patch) | |
tree | c6862acd465d9270c68cfc47918f36e08a10d77b /xdgmenumaker/debian/postinst | |
parent | add dependencies (diff) | |
download | stackrpms-7e9a29f8eef3b55be51b52e9a86ad9e07d3da3fb.tar.gz stackrpms-7e9a29f8eef3b55be51b52e9a86ad9e07d3da3fb.tar.bz2 stackrpms-7e9a29f8eef3b55be51b52e9a86ad9e07d3da3fb.zip |
add dpkg-trigger function to xdgmenumaker
Partially as a proof of concept, as well as to facilitate the
auto-generation of xdg-compatible menu in fluxbox.
Diffstat (limited to 'xdgmenumaker/debian/postinst')
-rw-r--r-- | xdgmenumaker/debian/postinst | 18 |
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 |