newly created files for use in recording appear in a .stubs folder, and are moved...
[ardour2.git] / libs / pbd / openuri.cc
blob7c51dc55e930c8b46987915897967af3c7890667
1 #ifdef WAF_BUILD
2 #include "libpbd-config.h"
3 #endif
5 #include <string>
6 #include <glibmm/spawn.h>
8 #include "pbd/openuri.h"
10 bool
11 PBD::open_uri (const char* uri)
13 #ifdef HAVE_GTK_OPEN_URI
14 GError* err;
15 return gtk_open_uri (0, uri, GDK_CURRENT_TIME, &err);
16 #else
17 #ifdef __APPLE__
18 extern bool cocoa_open_url (const char*);
19 return cocoa_open_url (uri);
20 #else
21 std::string command = "xdg-open ";
22 command += uri;
23 Glib::spawn_command_line_async (command);
25 return true;
26 #endif
27 #endif