Skip to content

Commit

Permalink
Implement openURL on Linux
Browse files Browse the repository at this point in the history
Implement openURL using xdg-open, the freedesktop.org command to
open a resource in the default browser or viewer.

Closes surge-synthesizer#638 menu manual on linux broken
  • Loading branch information
baconpaul committed Feb 21, 2019
1 parent 431588d commit c76f783
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/linux/UserInteractionsLinux.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "UserInteractions.h"
#include <iostream>
#include <iomanip>
#include <strstream>

namespace Surge
{
Expand Down Expand Up @@ -31,6 +32,9 @@ namespace Surge

void openURL(const std::string &url)
{
std::ostringstream oss;
oss << "xdg-open " << url;
system (oss.str().c_str());
}
};
};
Expand Down

0 comments on commit c76f783

Please sign in to comment.