use native Gtk2 crash dialogs on Linux

closes #3872
closes #3849
This commit is contained in:
Matthias Mailänder
2014-05-04 14:37:27 +02:00
parent 12767b7f21
commit bae47ff3c9
6 changed files with 20 additions and 2 deletions

View File

@@ -129,6 +129,9 @@ namespace OpenRA
).F(title, message, icon, logsButton, logsPath, faqButton, faqPath, quitButton);
}
if (CurrentPlatform == PlatformType.Linux && File.Exists("/usr/bin/zenity") && File.Exists("/usr/bin/xdg-open"))
process = "error-dialog.sh";
var psi = new ProcessStartInfo(process, args);
psi.UseShellExecute = false;
psi.CreateNoWindow = true;