Opening documents in linux, when trigger is from Wine App.

Questions about Wine on Linux
Locked
t20alex
Newbie
Newbie
Posts: 3
Joined: Wed Apr 16, 2014 9:53 am

Opening documents in linux, when trigger is from Wine App.

Post by t20alex »

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
t20alex
Newbie
Newbie
Posts: 3
Joined: Wed Apr 16, 2014 9:53 am

Re: Opening documents in linux, when trigger is from Wine Ap

Post by t20alex »

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!
t20alex
Newbie
Newbie
Posts: 3
Joined: Wed Apr 16, 2014 9:53 am

Re: Opening documents in linux, when trigger is from Wine Ap

Post by t20alex »

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\""
Locked