You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifkey=="prefix":
install_location=os.path.abspath(__file__)
ifinstall_location.startswith(
site.USER_BASE
): # Hacky way of looking for a user installationreturnsite.USER_BASEreturnsys.prefixifkey=="wineprefix":
returnos.path.join(self["prefix"], "share", "wenv", self["arch"])
workaround: set env WENV_WINEPREFIX=/some/where/else
or WENV_PREFIX=/some/where/else
ideally i want to setup the wine env only once in the read-only package store
so im running wenv init as part of the build process
just the default wineprefix is wrong, its based on the python interpreter location...
if (st.st_uid!=getuid()) fatal_error( "%s is not owned by you\n", config_dir );
wine complains about the ownership of WINEPREFIX
$ ./result/bin/wenv python
wine: '/nix/store/mcbrxyi2q7kksyrxm7px9l0ik3rxv94h-wenv-0.5.1/share/wenv/win32' is not owned by you
WINEPREFIX is not owned by you
i found many discussions on this problem
but no solution to make wine ignore the ownership
workarounds: sudo, chown, symlinks, bind mount, LD_PRELOAD, ...
but this issue remains:
if the default WENV_PREFIX is read-only
then wenv should fallback to $HOME/.cache/wenv
ideally the "cache" config should be a list of paths
for reading from the cache, all cache paths are used
for writing to the cache, the first writable cache path is used
by default, wenv fails with a read-only prefix
wenv/_core/env.py
wenv/_core/config.py
workaround: set env
WENV_WINEPREFIX=/some/where/else
or
WENV_PREFIX=/some/where/else
expected: if the default wineprefix is read-only
then fallback to
$HOME/.cache/wenv/wine
via platformdirssimilar #14
The text was updated successfully, but these errors were encountered: