| 23 Jan 2025 |
GGG | But .NET Framework 4.8 seems to only install itself | 20:41:27 |
GGG | In reply to @6pak:matrix.org you've got DNSPY_HOME there Yeah, forgot to change that one | 20:41:40 |
GGG | But I don't have any choice really, it needs all of that (I think, got tired of waiting for setup to see if it works without component A, B or C) | 20:42:22 |
6pak | would be nice to replace winetricks with nix | 20:44:34 |
GGG | Don't think it's possible really | 20:46:46 |
GGG | The installers need to actually run | 20:46:59 |
GGG | And registry keys and wine parameters need to be set | 20:47:16 |
GGG | Might be possible by messing with wine internals but I honestly cannot be bothered | 20:47:38 |
6pak | it's only files and registry changes | 20:47:40 |
GGG | * Might be possible by messing with wine commands but I honestly cannot be bothered | 20:47:49 |
6pak | so you can just save those in a nix package | 20:48:26 |
6pak | and then combine those as a nix wine prefix ala nixos system path | 20:48:43 |
GGG | I don't think I will, sounds like too much work to just avoid a one time setup | 20:49:10 |
6pak | but you would need to mess around with some kind of system for overlaying files and registry, sure | 20:49:22 |
GGG | And I don't plan to upstream this to nixpkgs anyways, so I'll just pick the lazy route | 20:49:47 |
6pak | yeah but winetricks is so slow | 20:50:36 |
6pak | and the stuff it copies to the prefix takes so much space | 20:50:46 |
GGG | It's only as slow as the installers themselves imo | 20:51:22 |
GGG | Most of the time was spent on them in this case | 20:51:38 |
6pak | have you ever ran winetricks corefonts | 20:53:33 |
6pak | or read winetricks source code | 20:54:01 |
GGG | Nope | 20:54:20 |
GGG | Just speaking from the output I saw | 20:54:29 |
GGG | I assume the one logging files being copied were the installers running under wine | 20:54:58 |
6pak | btw before I got wine workarounds upstreamed into dnspy I had this in the wrapper script
if [ ! -d "$WINEPREFIX" ]; then
mkdir -p "$WINEPREFIX"
${lib.getExe' wine "wineboot"} -u
fi
if ! grep -qw "corefonts" "$WINEPREFIX/winetricks.log" 2>/dev/null; then
${lib.getExe' winetricks "winetricks"} corefonts
fi
# Disable hardware acceleration in WPF (Avalon) because it's causing visual glitches
if ! grep -q '"DisableHWAcceleration"=dword:00000001' "$WINEPREFIX/user.reg" 2>/dev/null; then
"$WINE" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics" /v DisableHWAcceleration /t REG_DWORD /d 1 /f
fi
| 20:59:36 |
6pak | to avoid running wineboot/winetricks/winereg every launch | 20:59:50 |
6pak | which took quite some time | 20:59:57 |
6pak | it might not matter for your use case though I guess | 21:00:04 |
GGG | Yeah, in my case I can't really upstream anything nor use patches | 21:09:21 |
6pak | I mean the faster launch time might not matter for you | 21:10:00 |