wine PATH

Questions about Wine on macOS.
Locked
rmkk
Level 2
Level 2
Posts: 12
Joined: Tue Dec 03, 2019 5:24 am

wine PATH

Post by rmkk »

Dear friends, I'd like to ask what is the difference between two paths where wine is located ...

Code: Select all

~/Applications/Wine\ Staging.app/Contents/Resources/wine/bin
and
~/Applications/Wine\ Staging.app/Contents/MacOS

$ ls -al Applications/Wine\ Staging.app/Contents/Resources/wine/bin/wine
-rwxr-xr-x  1 radim  admin  13900 16 lis 06:38 Applications/Wine Staging.app/Contents/Resources/wine/bin/wine
$ ls -al Applications/Wine\ Staging.app/Contents/MacOS/wine
-rwxr-xr-x  1 radim  admin  17732 16 lis 06:50 Applications/Wine Staging.app/Contents/MacOS/wine
Both locations contain wine, but launching EXE works in little different way. The first wine open just one instance of windows application, the second open as many applications as you click on given dock icon - however another icon is created on the dock.

So, I'm curious what is the difference a what is the right purpose of both.
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: wine PATH

Post by Gcenx »

Code: Select all

Contents/Resources/wine/bin/wine
Contains the actual “wine” binary.

Code: Select all

Contents/MacOS/wine
That’s the launcher for the app bundle, I’d you use “open with” wine will be launched using NSTask, if you launch the bundle directly an Apple Script is created then launched that then launched Terminal and sets PATH leaving you with the standard macOS “wine terminal” session.
Locked