Hi guys,
This is going to be a silly question. I must use a secure shell type of software (similar to ZOC/snetterm) which is Windows only. It runs perfectly in WINE. Problem is, this software is able to download files (mainly PDFs). Wine complains upon download that no Windows software is associated with PDF extension. Rather than me installing a PDF viewer in wine, is it possible to pass on the open document command from inside of wine to Linux to open in a native viewer?
Cheers,
-Alex
Opening documents in linux, when trigger is from Wine App.
Re: Opening documents in linux, when trigger is from Wine Ap
Thanks! Yup, worked! . Strangely enough it did not work for me at first so I tried all the ways, none worked. Then rebooted machine and suddenly it works.
Guess I just needed to restart wine via CL
Thanks guys!
Guess I just needed to restart wine via CL
Thanks guys!
Re: Opening documents in linux, when trigger is from Wine Ap
Had to add a bunch more extensions, and again limited results. Probably me being retarded, but here is what I tried:
Tried to to do the catch all approach by creating run_linux_program script
#!/bin/sh $1 "`wine winepath -u "$2"`"
placed it under /bin/ -didnt work
placed it under /home/username/bin/ -didnt work
placed it under /home/bin/ - didnt work.
I did do: chmod a+x $HOME/bin/run_linux_program
Looks like I have to define $PATH Where do I define this? Is there a wine.cfg file? Or do I change the script itself ?
Also, for regedit entries, can you stack the below? I.e. create 10 of them in a single file and then cl: regedit myfile
[HKEY_CLASSES_ROOT\.pdf] <-- X 10 per each extension I need to bind.
@="PDFfile"
"Content Type"="application/pdf"
[HKEY_CLASSES_ROOT\PDFfile\Shell\Open\command]
@="/bin/sh run_linux_program acroread \"%1\""
Tried to to do the catch all approach by creating run_linux_program script
#!/bin/sh $1 "`wine winepath -u "$2"`"
placed it under /bin/ -didnt work
placed it under /home/username/bin/ -didnt work
placed it under /home/bin/ - didnt work.
I did do: chmod a+x $HOME/bin/run_linux_program
Looks like I have to define $PATH Where do I define this? Is there a wine.cfg file? Or do I change the script itself ?
Also, for regedit entries, can you stack the below? I.e. create 10 of them in a single file and then cl: regedit myfile
[HKEY_CLASSES_ROOT\.pdf] <-- X 10 per each extension I need to bind.
@="PDFfile"
"Content Type"="application/pdf"
[HKEY_CLASSES_ROOT\PDFfile\Shell\Open\command]
@="/bin/sh run_linux_program acroread \"%1\""