Hi, I use wine to invoke Acrobat. I made a shortcut like this to acroread : "exec wine -- /mnt/disk/wtravail/applis-perso/adobe/Acrobat/Acrobat.exe $1 2>/dev/null" to get it started. Can anyone explain why I sometimes get "file open error : file doesn't exist" ? I tested following : acroread esf.pdf => works acroread cups-pdf/esf.pdf => works (with relativ dir.) acroread ~/cups-pdf/esf.pdf => doesn't work (whereas dir. cups-pdf is in my ~) acroread /home/christophe27/cups-pdf/esf.pdf => doesn't work Has it with wine to do ? of with bash ? Thanks christophe
>I use wine to invoke Acrobat. >I made a shortcut like this to acroread : >"exec wine -- /mnt/disk/wtravail/applis-perso/adobe/Acrobat/Acrobat.exe $1 >2>/dev/null" >to get it started. > >Can anyone explain why I sometimes get "file open error : file doesn't exist" >? >I tested following : >acroread esf.pdf => works >acroread cups-pdf/esf.pdf => works (with relativ dir.) >acroread ~/cups-pdf/esf.pdf => doesn't work (whereas dir. cups-pdf is in my ~) >acroread /home/christophe27/cups-pdf/esf.pdf => doesn't workThe filepath is a parameter to Acrobat, not to wine, so it should be Windows notation, like C:\cups-pdf\esf.pdf. Make sure you have the needed path set to a drive in the config file. bye Fabi
Hi Fabian, I tried this already, sorry, I should have mentionned too. I even made a small script like this (for those who have interests in) : #!/bin/bash # ## -------- convert unix path into wine path with z:\ --------- if [ -z "$1" ]; then echo usage: $0 /unix/path/to/file exit fi echo "\"z:"$(pwd)/$1\" | sed 's/\//\\/g' ## eof for instance, I give : => cups-pdf/esf.pdf and I get : => "z:\home\christophe27cups-pdf\esf.pdf" (including the " signs) Then the problem is still whole : * why can I start 'acroread cups-pdf/esf.pdf ' if you say I should use a windows semantic * why does it work when givng in 'acroread "z:\home\christophe27\cups-pdf\esf.pdf"' but not working with 'acroread $(into_wine.sh cups-pdf/esf.pdf)' ____________Reply to_________________>I use wine to invoke Acrobat. >I made a shortcut like this to acroread : >"exec wine -- /mnt/disk/wtravail/applis-perso/adobe/Acrobat/Acrobat.exe $1 >2>/dev/null" >to get it started. > >Can anyone explain why I sometimes get "file open error : file doesn't exist" >? >I tested following : >acroread esf.pdf => works >acroread cups-pdf/esf.pdf => works (with relativ dir.) >acroread ~/cups-pdf/esf.pdf => doesn't work (whereas dir. cups-pdf is in my~)>acroread /home/christophe27/cups-pdf/esf.pdf => doesn't workThe filepath is a parameter to Acrobat, not to wine, so it should be Windows notation, like C:\cups-pdf\esf.pdf. Make sure you have the needed path set to a drive in the config file. bye Fabi
Hi Mike, I have to use Acrobat for windows because Acrobat can do things that acroread can't. Especially editing pdf. Christophe ______________________Reply to _________________________ Objet : Re: invoquing wine for acrobat I can't explain your error, but am wondering why you are using wine? You can download adobe acrobat reader from www.adobe.com already built to run under linux... Mike Crowe> > From: christophe <christophe27@gmx.net> > Date: 2003/11/26 Wed PM 06:51:30 EST > To: wine-users@winehq.com > Subject: invoquing wine > > Hi, > > I use wine to invoke Acrobat. > I made a shortcut like this to acroread : > "exec wine -- /mnt/disk/wtravail/applis-perso/adobe/Acrobat/Acrobat.exe $1 > 2>/dev/null" > to get it started. > > Can anyone explain why I sometimes get "file open error : file doesn'texist"> ? > I tested following : > acroread esf.pdf => works > acroread cups-pdf/esf.pdf => works (with relativ dir.) > acroread ~/cups-pdf/esf.pdf => doesn't work (whereas dir. cups-pdf is in my~)> acroread /home/christophe27/cups-pdf/esf.pdf => doesn't work > > Has it with wine to do ? of with bash ? > > Thanks > christophe > > _______________________________________________ > wine-users mailing list > wine-users@winehq.com > http://www.winehq.com/mailman/listinfo/wine-users >
>I have to use Acrobat for windows because Acrobat can do things that acroread >can't. Especially editing pdf. >ChristopheYou can edit pdf files with openoffice 1.1, look for "export to pdf" or something like that.
Hi, In november, I sent that message about invoquing wine and acrobat> Hi, > > I use wine to invoke Acrobat. > I made a shortcut like this to acroread : > "exec wine -- /mnt/disk/wtravail/applis-perso/adobe/Acrobat/Acrobat.exe $1 > 2>/dev/null" > to get it started. > > Can anyone explain why I sometimes get "file open error : file doesn'texist"> ? > I tested following : > acroread esf.pdf => works > acroread cups-pdf/esf.pdf => works (with relativ dir.) > acroread ~/cups-pdf/esf.pdf => doesn't work (whereas dir. cups-pdf is in my~)> acroread /home/christophe27/cups-pdf/esf.pdf => doesn't work > > Has it with wine to do ? of with bash ? > > Thanks > christophe >I want to give you the updates : According to uour advice, it didn't work because I didnot use the windows way to describe a path. actually it seems it is only important to provide a drive letter. Direct or backslash is not important. Then, I modified the script to get : #!/bin/sh # if [ -z "$1" ]; then xmessage usage: $0 /unix/path/to/file exit fi export LANG=fr_FR exec wine -- /mnt/disk/wsysteme/applis/msoffice/office/excel.exe z:$1 ## eof This script is only supposed to be used with a complete path to file from the root FS(/). But excel still tells me it cannot get the file !!! I know it got a complete argument (path and file) since when I introduce a mistake, it shows me the complete path with the mistake inside. Moreover, a quick ps shows the following ps is active : /usr/bin/wine-pthread -- /mnt/disk/wsysteme/applis/msoffice/office/excel.exe z:/home/chirstophe27/wnotes/data/perso/contacts11.xls Any clue ? Could you just try to lauch a windows application with wine, introducing an argument ? Does it work for you ? (something like : wine /mnt/disk/wsysteme/applis/msoffice/office/excel.exe z:/home/chirstophe27/wnotes/data/perso/contacts11.xls). And my question would be : if it works for you, do you have an idea why it does not work for me ? Thanks christophe
> > Any clue ?Where goes z: drive into $HOME/.wine/config ?> exec wine -- > /mnt/disk/wsysteme/applis/msoffice/office/excel.exe z:$1 > ## eof > > This script is only supposed to be used with a complete path to file > from the root FS(/). > But excel still tells me it cannot get the file !!! I know it got a > complete argument (path and file) since when I introduce a mistake, > it shows me the complete path with the mistake inside. Moreover, a > quick ps shows the following ps is active : > > /usr/bin/wine-pthread -- > /mnt/disk/wsysteme/applis/msoffice/office/excel.exe > z:/home/chirstophe27/wnotes/data/perso/contacts11.xls====Sylvain Petreolle (spetreolle_at_users_dot_sourceforge_dot_net) ICQ #170597259 Say NO to software patents Dites NON aux brevets logiciels "What if tomorrow the War could be over ?" Morpheus, in "Reloaded". ____________________________________________________________________________________ Do You Yahoo!? -- Avec Yahoo! soyez au coeur de la r?colte de dons pour le T?l?thon. http://fr.promotions.yahoo.com/caritatif/
Salut sylvain,>Where goes z: drive into $HOME/.wine/config ?z is the drive letter associated to / That's why I say my script can work only if you provide the complete path (for the moment). One more info I just noticed : the script actually works with winword, but not with excel nor with acrobat. Which makes it even stranger to me... PS: of course paths to progs are right... Christophe