[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: Re: ms word documents
From: David Faure <david () mandrakesoft ! com>
Date: 2002-11-03 10:49:04
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 03 November 2002 06:53, Will Watson wrote:
> Hello,
>
> For the life of me, I can't seem to open a MS word document in KWord. KSpread
> works good. Every time I attempt to open a document, a dialog tells me that
> the format is not suppoerted. These documents were created with Word97 w/o
> the quick-save mess turned on. I am using the default install of Mandrake
> 9.0. This file type, by default, was set to Netscape plugger. I have changed
> all of this to reflect that KWord is the default app. I have also noticed
> that, from within KWord, if I try to open (file>open) to one of these
> documents, it doesn't show up in the list of files in the open dialog box,
> even if I change the file-type-to-open selection at the bottom of the dialog
> to 'MSWord Documents'. Thanks for any help you can give me on this. This, as
> with a lot of people from waht I gather, is the last hurdle I must get across
> to completely reomove myself from the 'wonderful' world of Windows.
Ok, since this installation problem seems to happen to many people...
I just wrote a new script that checks the installation.
Please run the attached script and mail back the results.
- --
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9xP8g72KcVAmwbhARAjUvAJ9jo7SPw3qdvJ2qaaDZwI8EmL4qEgCbB5Uf
NlvuW0Oz1QHqfNYdi0ad/00=
=V0sL
-----END PGP SIGNATURE-----
["check_msword_import.sh" (application/x-shellscript)]
#!/bin/bash
if ! kde-config ; then
echo 'kde-config not found ! Aborting. You need a more recent KDE, or to fix your $PATH.'
exit 1
fi
mimelnks=`kde-config --path mime`
lastmimepath=""
found=0
# Relevant existing mimetypes
mimes=""
IFS=:
for dir in $mimelnks; do
lastmimepath=$dir
filename="application/msword.desktop"
if [ -f "$dir$filename" ]; then
echo -n "Found: $dir$filename... "
hidden=`grep ^Hidden $dir$filename`
if [ "$hidden" == "true" ]; then
echo "deleted";
else
mimetype=`grep ^MimeType $dir$filename|sed -e 's/.*=//'`
mimes="$mimes:$mimetype"; # using ':' because of IFS
patterns=`grep ^Patterns $dir$filename|sed -e 's/.*=//'`
if [ -n "$patterns" ]; then
echo -n "(associated with $patterns)"
fi
echo
fi
fi
filename="application/msword2.desktop"
if [ -f "$dir$filename" ]; then
echo -n "Found: $dir$filename... "
hidden=`grep ^Hidden $dir$filename`
if [ "$hidden" == "true" ]; then
echo "deleted";
else
mimetype=`grep ^MimeType $dir$filename|sed -e 's/.*=//'`
mimes="$mimes:$mimetype"; # using ':' because of IFS
patterns=`grep ^Patterns $dir$filename|sed -e 's/.*=//'`
if [ -n "$patterns" ]; then
echo -n "(associated with $patterns)"
fi
echo
fi
fi
done
IFS=" "
mimes=`echo $mimes | sed -e 's/^://g'`
echo "Relevant mimetypes found: $mimes"
magic=$lastmimepath/magic
if [ -f "$magic" ]; then
echo "magic file says: "
grep 'Microsoft\\ Word' $magic
else
echo "ERROR: Magic file not found $magic"
fi
IFS=:
for dir in `kde-config --path services`; do
echo Services dir $dir
for mime in $mimes; do
grep "Import=.*$mime" $dir/*.desktop
done
done
____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic