MegaGlest Forum

MegaGlest => Feature requests => Topic started by: tomreyn on 1 October 2013, 18:57:10

Title: URLs or linked text spawning a web browser
Post by: tomreyn on 1 October 2013, 18:57:10
It would be nice to have the ability to add text which, when clicked, opens a given URL in the users default web browser.
A possible use case is the "About" menu which already has a link to the website (another could be added for the forum), but it clicking it does not currently do anything. There are several other use cases I can think of, but this will be for later. For now we need a way to actually make it possible to open the users' web browser at the given location.

Here's how 0 A.D. does it (thanks Philip):
Un*xoid systems incl. Linux (http://trac.wildfiregames.com/browser/ps/trunk/source/lib/sysdep/os/unix/unix.cpp#L343)
Windows (http://trac.wildfiregames.com/browser/ps/trunk/source/lib/sysdep/os/win/wsysdep.cpp#L466)

For OS X, it's the same as for the other un*xoid systems but it runs open (instead of xdg-open) there.