launch native linux application from wine

Questions about Wine on Linux
Locked
phil766
Newbie
Newbie
Posts: 4
Joined: Thu Mar 23, 2017 10:08 pm

launch native linux application from wine

Post by phil766 »

Hi, since wine v.2.3+ I cannot launch my native linux application from windows apps
I use the method from winehq faq :

[HKEY_CLASSES_ROOT\.doc]
@="DOCfile"
"Content Type"="application/doc"
[HKEY_CLASSES_ROOT\DOCFile\Shell\Open\command]
@="winebrowser \"%1\""

Was working in wine 2.0 and lower version.
I tried the script method without any success.
The only application I need to get working is pdf viewer, libreoffice writer and calc.
For pdf viewer, it seem to be working though.
phil766
Newbie
Newbie
Posts: 4
Joined: Thu Mar 23, 2017 10:08 pm

Re: launch native linux application from wine

Post by phil766 »

Anybody have a solution ? Thank you
User avatar
dimesio
Moderator
Moderator
Posts: 13201
Joined: Tue Mar 25, 2008 10:30 pm

Re: launch native linux application from wine

Post by dimesio »

phil766 wrote: "Content Type"="application/doc"
According to the example in the FAQ, that should be

Code: Select all

"Content Type"="application/msword"
for doc files.
phil766
Newbie
Newbie
Posts: 4
Joined: Thu Mar 23, 2017 10:08 pm

Re: launch native linux application from wine

Post by phil766 »

Hi there, thank you for the reply.
Actually, the problem was in the declaration of the .reg file.
I had to put REDEDIT4 on the first line and now, everything is working.
phil766
Newbie
Newbie
Posts: 4
Joined: Thu Mar 23, 2017 10:08 pm

Re: launch native linux application from wine

Post by phil766 »

Here an example :

Code: Select all


REGEDIT4

[HKEY_CLASSES_ROOT\.doc]
@="DOCfile"
"Content Type"="application/doc"
[HKEY_CLASSES_ROOT\DOCfile\Shell\Open\command]
@="C:\\windows\\system32\\winebrowser.exe \"%1\""

[HKEY_CLASSES_ROOT\.docx]
@="DOCXfile"
"Content Type"="application/docx"
[HKEY_CLASSES_ROOT\DOCXfile\Shell\Open\command]
@="C:\\windows\\system32\\winebrowser.exe \"%1\""

[HKEY_CLASSES_ROOT\.xls]
@="XLSfile"
"Content Type"="application/xls"
[HKEY_CLASSES_ROOT\XLSfile\Shell\Open\command]
@="C:\\windows\\system32\\winebrowser.exe \"%1\""

[HKEY_CLASSES_ROOT\.xlsx]
@="XLSXfile"
"Content Type"="application/xlsx"
[HKEY_CLASSES_ROOT\XLSXfile\Shell\Open\command]
@="C:\\windows\\system32\\winebrowser.exe \"%1\""
Locked