Re: MS Word on Wine
Word, Excel and Powerpoint 2003 work fine for me under Wine-0.9.54
I run word because Openoffice gives me formatting headaches, feels slower, and just doesn't work the way I want it to. And I get MS Office for free.
I use this script for launching word that I found somewhere on the internet, it helps with compatability with konqueror and such. I just save it as a file called word, make it executable, and then point konqueror at it whenever it wants to open a doc file.
Code:
#!/bin/sh
# Launch Microsoft Word either by itself or with the provided file name to open.
# Fully qualifies pathname of the Windows Application to launch
PROGRAM="C:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.EXE"
# If launched with no parameters, just run the application and exit.
if [ $# = 0 ]; then
wine "$PROGRAM"
exit 0
fi
# Get the file to open and the directory where it resides.
FILE_NAME=`basename "$1"`
DIR_NAME=`dirname "$1"`
# Convert directory from relative to fully qualified path.
if [ `echo $DIR_NAME | cut -c 1` != "/" ]; then
DIR_NAME=`pwd`/$DIR_NAME
fi
# Change to the directory, run winepath to see if the directory maps to a fake
# windows drive. WINEPATH_ERRS is 1 if not and 0 if yes.
cd "$DIR_NAME"
winepath "$DIR_NAME" > /tmp/winepath.chk 2>&1
WINEPATH_ERRS=`cat /tmp/winepath.chk | grep "Warning" | wc -l`
# If we cannot edit the file, show error box and terminate.
if [ $WINEPATH_ERRS -gt 0 ]; then
kdialog --title "WINE/Microsoft Office Error!" --error \
"ERROR:
Attempting to open a file using a Windows Application where the file is not in a location accessible b$
- Move the file ($1) to a valid location.
- Ensure that ($DIR_NAME) is accessible to WINE.
Fake Windows drives are configured as softlinks (ln -s) in the directory (~/.wine/dosdevices). The cu$
$(ls -l ~/.wine/dosdevices | tr -s " " | cut -d " " -f 9-) "
exit 1
fi
# Finally run the application.
wine "$PROGRAM" "$FILE_NAME"
Last edited by Whiffle; February 25th, 2008 at 01:59 AM.
100 buckets of bits on the bus,
100 buckets of bits,
Take one down, short it to ground,
FF buckets of bits on the bus.
Bookmarks