From 86aa2e2625beb20cab37161834a99ab138b0f5d0 Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Fri, 25 Aug 2023 20:25:38 +0200 Subject: [PATCH] MEN_CreateIssueOnGithub: Workaround issue on MacOSX Somehow the operation BrowseURL does not work on MacOSX catalina of the author. This could be some security feature issue, so let's just inform the user what to do. --- Packages/MIES/MIES_Menu.ipf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Packages/MIES/MIES_Menu.ipf b/Packages/MIES/MIES_Menu.ipf index 523546c6a0..6b1c7bec21 100644 --- a/Packages/MIES/MIES_Menu.ipf +++ b/Packages/MIES/MIES_Menu.ipf @@ -209,7 +209,16 @@ Function MEN_CreateIssueOnGithub() sprintf url, "https://github.com/AllenInstitute/MIES/issues/new?title=%s&body=%s", URLEncode(title), URLEncode(body) +#if defined(WINDOWS) BrowseURL(url) +#elif defined(MACINTOSH) + printf "##############################\r" + print body + printf "##############################\r" + printf "Please paste the text between the hashtags into a new issue at: https://github.com/AllenInstitute/MIES/issues/new\r" +#else + ASSSERT(0, "Unsupported OS") +#endif End Function MEN_ClearPackageSettings()