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
I'm trying to use specific functions of winetricks in another bash file:
export WINETRICKS_LIB=0
source winetricks
The problem is that multiple calls on top level to the w_metadata() function will try to create files in subfolders in $W_TMP_EARLY. But for the subfolders corresponding to the categories to exist, winetricks_init must be run first:
# Workaround for https://github.com/Winetricks/winetricks/issues/599
# If --isolate is used, pass verb to winetricks_init, so it can set the wineprefix using winetricks_set_wineprefix()
# Otherwise, an arch mismatch between ${WINEPREFIX:-$HOME/.wine} and the prefix to be made for the isolated app would cause it to fail
case${WINETRICKS_OPT_SHAREDPREFIX}in
0) winetricks_init "$1" ;;
*) winetricks_init ;;
esac
fi
Would there be another solution instead of duplicating the functionality of the winetricks_init function in my script?
What I need the use as library for, is making winetricks compatible with nixos flakes. Since winetricks does use wget to download it's installers, it is incompatible to the dependency management. I would like to overwrite the w_download() function with a function that uses results from the nix.fetchurl feature, and just copies the installers to the correct location.
The text was updated successfully, but these errors were encountered:
userx14
changed the title
Trying to use WINETRICKS_LIB,
Trying to use WINETRICKS_LIB
Aug 3, 2024
I'm trying to use specific functions of winetricks in another bash file:
The problem is that multiple calls on top level to the
w_metadata()
function will try to create files in subfolders in$W_TMP_EARLY
. But for the subfolders corresponding to the categories to exist,winetricks_init
must be run first:winetricks/src/winetricks
Lines 5393 to 5396 in a41ce69
It is however not run when
WINETRICKS_LIB=0
:winetricks/src/winetricks
Lines 5802 to 5830 in a41ce69
Would there be another solution instead of duplicating the functionality of the
winetricks_init
function in my script?What I need the use as library for, is making winetricks compatible with nixos flakes. Since winetricks does use wget to download it's installers, it is incompatible to the dependency management. I would like to overwrite the
w_download()
function with a function that uses results from the nix.fetchurl feature, and just copies the installers to the correct location.The text was updated successfully, but these errors were encountered: