From 72930708ec76ff3954aabf757c0542363f6cbcab Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 4 Nov 2021 22:07:39 -0400 Subject: [PATCH] CmdNews: Support Mac OS-X url opener --- src/commands/CmdNews.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/CmdNews.cpp b/src/commands/CmdNews.cpp index a1b30edb3..c41d56b42 100644 --- a/src/commands/CmdNews.cpp +++ b/src/commands/CmdNews.cpp @@ -616,7 +616,11 @@ int CmdNews::execute (std::string& output) autoComplete (answer, options, matches, 1); // Hard-coded 1. if (matches.size () == 1 && matches[0] == "yes") +#if defined (DARWIN) + system ("open 'https://github.com/sponsors/GothenburgBitFactory/'"); +#else system ("xdg-open 'https://github.com/sponsors/GothenburgBitFactory/'"); +#endif std::cout << std::endl; }