Clicking links in desktop build doesn't open the browser
jrynkiew opened this issue · comments
Jeremi [IoTeX] Rynkiewicz JRPC commented
Pascal Thomet commented
Hello,
I did not implement this on desktop mode for linux (since imgui_manual is mainly intended to be used on emscripten).
However, changing this should be easy:
Look at HyperlinkHelper.cpp
Something around this (not tested) should work (if xdg-open
is installed)
void OpenUrl(const std::string &url)
{
...
...
...
#elif defined(TARGET_OS_MAC)
std::string cmd = std::string("open ") + url.c_str();
system(cmd.c_str());
#elif defined(__linux__)
std::string cmd = std::string("xdg-open ") + url;
system(cmd.c_str());
#endif
Jeremi [IoTeX] Rynkiewicz JRPC commented
Wow, thank You! It worked like a charm straight away!. You're the boss!