Skip to content

Commit

Permalink
Merge pull request #88 from neuromancer/patch-1
Browse files Browse the repository at this point in the history
complete gecko popup removal when creating a new wine prefix

Former-commit-id: 51b3653
  • Loading branch information
tkashkin committed Sep 26, 2018
2 parents 5acf271 + 52db71f commit 31de3d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/data/compat/Wine.vala
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace GameHub.Data.Compat
{
env = Environ.set_variable(env, "WINEPREFIX", prefix.get_path());
}
env = Environ.set_variable(env, "WINEDLLOVERRIDES", "mscoree,mshtml=");
env = Environ.set_variable(env, "WINEDLLOVERRIDES", "mshtml=d");

return env;
}
Expand All @@ -130,6 +130,8 @@ namespace GameHub.Data.Compat
{
env = Environ.set_variable(env, "WINEPREFIX", prefix.get_path());
}
env = Environ.set_variable(env, "WINEDLLOVERRIDES", "mshtml=d");

yield Utils.run_thread({ wine_binary.get_path(), util }, game.install_dir.get_path(), env);
}

Expand All @@ -142,6 +144,8 @@ namespace GameHub.Data.Compat
{
env = Environ.set_variable(env, "WINEPREFIX", prefix.get_path());
}
env = Environ.set_variable(env, "WINEDLLOVERRIDES", "mshtml=d");

yield Utils.run_thread({ "winetricks" }, game.install_dir.get_path(), env);
}

Expand All @@ -154,6 +158,8 @@ namespace GameHub.Data.Compat
{
env = Environ.set_variable(env, "WINEPREFIX", prefix.get_path());
}
env = Environ.set_variable(env, "WINEDLLOVERRIDES", "mshtml=d");

var win_path = (yield Utils.run_thread({ wine_binary.get_path(), "winepath", "-w", path.get_path() }, game.install_dir.get_path(), env)).strip();
debug("'%s' -> '%s'", path.get_path(), win_path);
return win_path;
Expand Down

0 comments on commit 31de3d0

Please sign in to comment.