planmaker16 383 B

123456789101112131415
  1. #!/bin/sh
  2. # A script to run PlanMaker.
  3. GUI=-gui:$( \
  4. if [ -r ~/.smoffice_gui.conf ]; then \
  5. cat ~/.smoffice_gui.conf; \
  6. else \
  7. [ -r /etc/smoffice_gui.conf ] && cat /etc/smoffice_gui.conf; \
  8. fi | grep -o -m1 "gnome\|kde" | head -n1)
  9. case "$GUI" in
  10. -gui:gnome|-gui:kde) /opt/smoffice2016/planmaker "$GUI" "$@" ;;
  11. *) /opt/smoffice2016/planmaker "$@" ;;
  12. esac