Read the Wine version without Boost.Process

By spawning the process using posix_spawn and manually reading from a
pipe.
This commit is contained in:
Robbert van der Helm
2022-04-11 14:33:35 +02:00
parent 60e4619ef1
commit 006cc6f52a
4 changed files with 251 additions and 43 deletions
+3
View File
@@ -22,6 +22,7 @@
#include "../common/configuration.h"
#include "../common/plugins.h"
#include "../common/process.h"
#include "../common/utils.h"
/**
@@ -76,6 +77,8 @@ struct PluginInfo {
* unset if we could not detect a prefix.
*/
boost::process::environment create_host_env() const;
// FIXME: Replace create_host_env with this one
ProcessEnvironment create_host_env_2() const;
/**
* Return the path to the actual Wine prefix in use, taking into account