$OpenBSD: patch-src_openrct2-ui_UiContext_Linux_cpp,v 1.1 2018/06/28 19:08:09 sthen Exp $

Index: src/openrct2-ui/UiContext.Linux.cpp
--- src/openrct2-ui/UiContext.Linux.cpp.orig
+++ src/openrct2-ui/UiContext.Linux.cpp
@@ -250,11 +250,11 @@ namespace OpenRCT2 { namespace Ui
         {
             // Prefer zenity as it offers more required features, e.g., overwrite
             // confirmation and selecting only existing files
-            if (Execute("which zenity", executablePath) == 0)
+            if (Execute("which zenity 2> /dev/null", executablePath) == 0)
             {
                 return DIALOG_TYPE::ZENITY;
             }
-            if (Execute("which kdialog", executablePath) == 0)
+            if (Execute("which kdialog 2> /dev/null", executablePath) == 0)
             {
                 return DIALOG_TYPE::KDIALOG;
             }
