I create a ~/.wine_x86
wineprefix and exported WINEPREFIX from from ~/.bashrc
to point to that directory. I am pretty new to the concept of login/non-login shell, interactive/non-interactive shell, but from what I've studied so far, scripts inside ~/.bashrc
are executed on non-login session and will be called during login session anyway. So theoretically I will have WINEPREFIX=~/.wine_x86
on all sorts of sessions.
I logged in using graphical interface, fired up a terminal, seemed good:
Code: Select all
livy@lubuntu:~$ printenv WINEPREFIX
In fact it is good if I continue to run Wine from terminal. But if I double clicking a .exe
on the file manager, it switches back to the default ~/.wine
wineprefix. It seems my code inside ~/.bashrc
was not sourced in this case. Why and how can I remedy this issue?