Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 659653b6933f737ca9da8703387587b2 > files > 12

openbox-3.6.1-13.mga9.src.rpm

#!/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