mf-install icon indicating copy to clipboard operation
mf-install copied to clipboard

Uses system Wine instead of Lutris Wine

Open jpreston84 opened this issue 4 years ago • 3 comments

For anyone being stumped by the error... wine: '/path/to/my/wineprefix' is a 64-bit installation, it cannot be used with a 32-bit wineserver.

The script uses your system wine install to register the DLLs. That means you need to have the appropriate wine64 package installed (called wine64 on Ubuntu 20.04 -- unsure about other versions).

Ideally, you would be able to specify a path to a Lutris wine runner and use that instead.

jpreston84 avatar May 18 '20 20:05 jpreston84

This entire script likely won't be needed anymore soon as Guy1524 has largely implemented working Media Foundation support into Wine already.

z0z0z avatar May 19 '20 00:05 z0z0z

Which is why I did this to mf-install script locally:

#!/bin/bash

wine(){
    "${WINE:-`which wine`}" "$@"
}

wine64(){
    "${WINE64:-`which wine64`}" "$@"
}

It's a bit hacky, bu when further down the script, whenever there's a call to wine or wine64, the script will call whatever the WINE and WINE64 environment variables are pointing at if they're set, otherwise it uses the system's wine and wine64.

So whenever I wanna use mf-install, just set the WINE, WINE64 and WINEPREFIX environment variables to whatever I need.

tonebacas avatar Jun 20 '20 16:06 tonebacas

You can just use PATH="$HOME/.local/share/lutris/runners/wine/lutris-fshack-7.1-x86_64/bin:$PATH" ./mf-install.sh

Buri avatar Feb 23 '22 16:02 Buri