Passing arguments from a WINE application to a native Linux application

Questions about Wine on Linux
Post Reply
eblu
Newbie
Newbie
Posts: 1
Joined: Mon Jan 06, 2020 10:43 pm

Passing arguments from a WINE application to a native Linux application

Post by eblu » Mon Jan 06, 2020 11:29 pm

Hi,

I'm trying to run a utility that only supports Windows, however it allows me to test in an application that has a native build available. Since it passes arguments to an .exe or .bat, it should be rather trivial to do so, however I'm having trouble actually launching a native application from within WINE. I've tried modifying some of the techniques found on the Winepath article, but those seem to be for filetypes as a whole and not just a single application.

Help would be appreciated.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 973
Joined: Tue Nov 22, 2016 5:39 pm

Re: Passing arguments from a WINE application to a native Linux application

Post by DarkShadow44 » Wed Jan 15, 2020 7:59 pm

Well, for example, to use GIMP as external editor in IrfanView.exe, I use

Code: Select all

Z:\bin\bash "-c "gimp \"$(winepath '%1')\"""
It's a bit finicky, but I found using bash as intermediate helps a lot.

What exactly are you trying to achieve?

Post Reply