From 7e9a29f8eef3b55be51b52e9a86ad9e07d3da3fb Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 7 Jan 2020 16:19:31 -0500 Subject: 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. --- xdgmenumaker/debian/postinst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 xdgmenumaker/debian/postinst (limited to 'xdgmenumaker/debian/postinst') 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 -- cgit