2 #include "libpbd-config.h"
5 #include <boost/scoped_ptr.hpp>
7 #include <glibmm/spawn.h>
10 #include "pbd/openuri.h"
13 PBD::open_uri (const char* uri)
16 extern bool cocoa_open_url (const char*);
17 return cocoa_open_url (uri);
19 EnvironmentalProtectionAgency* global_epa = EnvironmentalProtectionAgency::get_global_epa ();
20 boost::scoped_ptr<EnvironmentalProtectionAgency> current_epa;
22 /* revert all environment settings back to whatever they were when ardour started
26 current_epa.reset (new EnvironmentalProtectionAgency(true)); /* will restore settings when we leave scope */
27 global_epa->restore ();
30 std::string command = "xdg-open ";
33 system (command.c_str());