From 4932537a917521f801fd0b15c2b6ad8d909787ba Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 27 May 2017 21:53:40 +0100 Subject: [PATCH] Fix kdialog implementation --- src/openrct2-ui/UiContext.Linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/UiContext.Linux.cpp b/src/openrct2-ui/UiContext.Linux.cpp index 2b6200c97e..5d6f4bb129 100644 --- a/src/openrct2-ui/UiContext.Linux.cpp +++ b/src/openrct2-ui/UiContext.Linux.cpp @@ -123,7 +123,7 @@ namespace OpenRCT2 { namespace Ui (desc.Type == FILE_DIALOG_TYPE::OPEN) ? "--getopenfilename" : "--getsavefilename"; std::string filter = GetKDialogFilterString(desc.Filters); - std::string cmd = String::StdFormat("%s --title '%s' %s '%s/' ~ '%s'", + std::string cmd = String::StdFormat("%s --title '%s' %s '%s' '%s'", executablePath.c_str(), desc.Title.c_str(), action.c_str(), @@ -226,7 +226,7 @@ namespace OpenRCT2 { namespace Ui { return DIALOG_TYPE::ZENITY; } - if (Execute("which kdialog", executablePath)) + if (Execute("which kdialog", executablePath) == 0) { return DIALOG_TYPE::KDIALOG; }