CmdNews: Support Mac OS-X url opener

This commit is contained in:
Tomas Babej 2021-11-04 22:07:39 -04:00
parent 58763fd49f
commit 72930708ec
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -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;
}