Allow overriding the wine prefix manually

This commit is contained in:
Robbert van der Helm
2020-04-14 19:16:46 +02:00
parent 03de09d77f
commit 4d7ce8f3fb
+6 -1
View File
@@ -561,7 +561,12 @@ fs::path generate_endpoint_name() {
* the user's default prefix.
*/
bp::environment set_wineprefix() {
auto env(boost::this_process::environment());
auto env = boost::this_process::environment();
// Allow the wine prefix to be overridden manually
if (!env["WINEPREFIX"].empty()) {
return env;
}
const auto wineprefix_path = find_wineprefix();
if (wineprefix_path.has_value()) {