textmaker16 497 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # A script to run TextMaker.
  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)
  11. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/smoffice2016/dpf \
  12. /opt/smoffice2016/textmaker "$GUI" "$@"
  13. ;;
  14. *)
  15. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/smoffice2016/dpf \
  16. /opt/smoffice2016/textmaker "$@"
  17. ;;
  18. esac