Skip to content

Commit

Permalink
use system call to open url on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Oct 27, 2024
1 parent 553590e commit d6ab5d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libov
Submodule libov updated 1 files
+1 −1 tascar
8 changes: 8 additions & 0 deletions src/ovbox.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,21 @@ void ovboxgui_t::on_hide()

void ovboxgui_t::on_uiurl_clicked()
{
#ifdef __APPLE__
TASCAR::system("open "+ui_url,false);
#else
gtk_show_uri(NULL, ui_url.c_str(), GDK_CURRENT_TIME, NULL);
#endif
}

void ovboxgui_t::on_mixer_clicked()
{
std::string url("http://" + ep2ipstr(getipaddr()) + ":8080/");
#ifdef __APPLE__
TASCAR::system("open "+url,false);
#else
gtk_show_uri(NULL, url.c_str(), GDK_CURRENT_TIME, NULL);
#endif
}

bool ovboxgui_t::on_timeout()
Expand Down

0 comments on commit d6ab5d6

Please sign in to comment.