C
C
Chasbls2020-02-16 09:58:27
Wine
Chasbls, 2020-02-16 09:58:27

How to run an .exe file from a different wineprefix?

I installed the game in a separate prefix with separate libraries, but when I run the executable, it starts in the usual prefix without libraries. How to make it run in a different prefix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2020-02-16
@shurshur

WINEPREFIX=/other/wineprefix wine ./file.exe
With this syntax, the overridden WINEPREFIX variable will only apply to this one call to wine. To act within the current session, you need to do
export WINEPREFIX=/other/wineprefix
If you need it permanently, add this to .bash_profile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question