summaryrefslogtreecommitdiffstats
path: root/office/smoffice2016/planmaker16
blob: 6c50f83ffaa928e6f47407d2f42f8fd589c326cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# A script to run PlanMaker.

GUI=-gui:$( \
if [ -r ~/.smoffice_gui.conf ]; then \
  cat ~/.smoffice_gui.conf; \
else \
  [ -r /etc/smoffice_gui.conf ] && cat /etc/smoffice_gui.conf; \
fi | grep -o -m1 "gnome\|kde" | head -n1)

case "$GUI" in
  -gui:gnome|-gui:kde) /opt/smoffice2016/planmaker "$GUI" "$@" ;;
                    *) /opt/smoffice2016/planmaker "$@" ;;
esac