#!/bin/sh if [ "$USER_MENU" = "1" ]; then OUTPUTDIR=$HOME/.config/openbox if [ ! -d "$OUTPUTDIR" ]; then mkdir -p $OUTPUTDIR fi else OUTPUTDIR=/etc/xdg/openbox fi if [ "$VERBOSE" = "1" ]; then echo "writing to $OUTPUTDIR/menu" /usr/bin/xdg_menu --language=C --verbose --format openbox3 > $OUTPUTDIR/xdg-menu.xml else /usr/bin/xdg_menu --language=C --format openbox3 > $OUTPUTDIR/xdg-menu.xml 2> /dev/null fi