mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
CmdNews: Support Mac OS-X url opener
This commit is contained in:
parent
58763fd49f
commit
72930708ec
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue