Passing arguments from a WINE application to a native Linux application

Questions about Wine on Linux
Locked
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 »

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 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

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

Post by DarkShadow44 »

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?
Locked