mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Don't set WINEPREFIX for the current process
`native_environment` allows modification of the current process's environment, so we had to use the plain `environment` class instead.
This commit is contained in:
@@ -597,7 +597,7 @@ void PluginBridge::log_init_message() {
|
||||
|
||||
// If the Wine prefix is manually overridden, then this should be made
|
||||
// clear. This follows the behaviour of `set_wineprefix()`.
|
||||
bp::native_environment env = boost::this_process::environment();
|
||||
bp::environment env = boost::this_process::environment();
|
||||
if (!env["WINEPREFIX"].empty()) {
|
||||
init_msg << env["WINEPREFIX"].to_string() << " <overridden>";
|
||||
} else {
|
||||
|
||||
@@ -242,7 +242,7 @@ std::string get_wine_version() {
|
||||
// used to run Wine, so will will respect this as well
|
||||
std::string wine_command = "wine";
|
||||
|
||||
bp::native_environment env = boost::this_process::environment();
|
||||
bp::environment env = boost::this_process::environment();
|
||||
if (!env["WINELOADER"].empty()) {
|
||||
wine_command = env.get("WINELOADER");
|
||||
}
|
||||
@@ -271,7 +271,7 @@ std::string get_wine_version() {
|
||||
}
|
||||
|
||||
bp::environment set_wineprefix() {
|
||||
bp::native_environment env = boost::this_process::environment();
|
||||
bp::environment env = boost::this_process::environment();
|
||||
|
||||
// Allow the wine prefix to be overridden manually
|
||||
if (!env["WINEPREFIX"].empty()) {
|
||||
|
||||
Reference in New Issue
Block a user