Adding wine install directory to system path...

Questions about Wine on macOS.
Post Reply
SteveS
Newbie
Newbie
Posts: 4
Joined: Mon Nov 04, 2019 9:31 am

Adding wine install directory to system path...

Post by SteveS » Wed Mar 04, 2020 10:49 am

I would like to automate adding a wine's install directory to the host's /private/etc/paths.d

I can manually do this via sudo but I'm having some issues doing it from within an installer for windows.

I've got a file that contains the install path:

Code: Select all

/Applications/Wine Stable.app/Contents/Resources/wine/bin
of course, dropping this file into /private/etc/paths.d requires sudo privileges (even on an Admin account). As a result, just copying the file during install to Z:\private\etc\paths.d\ fails.

Any ideas on how to be able to work around this issue? If it matters, I'm using pre-built wine packages, not building from source.

Post Reply