aboutsummaryrefslogtreecommitdiff
path: root/office/smoffice2016/textmaker16
blob: c1c334cd08fadc5022923e0b9584d9f56f29b874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# A script to run TextMaker.

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) 
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/smoffice2016/dpf \
    /opt/smoffice2016/textmaker "$GUI" "$@"
  ;;
  *)
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/smoffice2016/dpf \
    /opt/smoffice2016/textmaker "$@"
  ;;
esac