I use Kanotix linux for my laptop.

I have difficulties to open document from my email client software that run under wine, every time I try to open the file, then I have to save it first and run my openoffice to open it. So I create a symlink to do this into "drive_c/" directory and associate *.doc from wine to this file.

I create office.bash and put it in my /HOME directory or whatever,  then create symlink to /home/iip/drive_c/windows/office.exe to run the script that I have created. here is the script:

!/bin/bash
echo opening file $1
m=$1
n=${m//'\'/'/'}
n=~/.wine/dosdevices/$n
n=`echo $n | tr A-Z a-z`
kdialog --msgbox "$n"
exec /opt/openoffice.org2.0/program/soffice "$n"

I don't know if this is a good idea, but it is work for me ;)





Add a Comment
   
© 2008 Multiply, Inc.    About · Blog · Terms · Privacy · Corp Info · Contact Us · Help