From 130a8f813f9496fb696bf944dfaadf6ee351f32c Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 31 Jan 2003 09:11:09 +0000 Subject: [PATCH] - updated for OOo in /usr, changed some font paths to PLD standard Changed files: openoffice-wrapper -> 1.3 --- openoffice-wrapper | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openoffice-wrapper b/openoffice-wrapper index c1fa962..6b468d2 100644 --- a/openoffice-wrapper +++ b/openoffice-wrapper @@ -27,7 +27,7 @@ else # rename old .sversonrc [ -f $HOME/.sversionrc ] && mv $HOME/.sversionrc $HOME/.sversionrc.old # run the automated setup - /usr/X11R6/lib/openoffice/program/setup -R:/etc/openoffice/autoresponse.conf + /usr/lib/openoffice/program/setup -R:/etc/openoffice/autoresponse.conf echo "DONE" fi @@ -36,7 +36,7 @@ fi if [ ! -e "$OOHOME/user/wordbook/dictionary.lst" ] then (cd $OOHOME/user/wordbook; - for file in /usr/X11R6/lib/openoffice/share/wordbook/english/en_US.???; do + for file in /usr/lib/openoffice/share/wordbook/english/en_US.???; do ln -s $file . done echo "DICT en US en_US" > dictionary.lst @@ -47,7 +47,7 @@ fi # (dictionary.lst is bound to exist, see above) lang=$(sed -n "/LC_MESSAGES=\([a-z]*_[A-Z]*\).*/s//\1/p" /etc/sysconfig/i18n) if ! grep -q "$lang" "$OOHOME/user/wordbook/dictionary.lst"; then - if [ -f "/usr/X11R6/lib/myspell/$lang.aff" ]; then + if [ -f "/usr/lib/myspell/$lang.aff" ]; then (cd $OOHOME/user/wordbook; for file in /usr/lib/myspell/$lang.???; do ln -sf $file . @@ -62,11 +62,11 @@ chkfontpath="/usr/sbin/chkfontpath" if [ -x "$chkfontpath" ]; then fontpath=$($chkfontpath | perl -ne '/[0-9]+: (.*)/ and print "$1;"') else - ttf_fontpath="/usr/X11R6/lib/X11/fonts/TTF;/usr/share/fonts/default/TrueType" + ttf_fontpath="/usr/share/fonts/TTF;/usr/share/fonts/default/TrueType" for fontdir in /usr/share/fonts/ttf/*; do ttf_fontpath="$ttf_fontpath;$fontdir" done - type1_fontpath="/usr/X11R6/lib/X11/fonts/Type1;/usr/share/fonts/default/Type1" + type1_fontpath="/usr/share/fonts/Type1;/usr/share/fonts/default/Type1" fontpath="$ttf_fontpath;$type1_fontpath" fi SAL_FONTPATH_USER="$fontpath;$SAL_FONTPATH_USER" -- 2.44.0