Author Topic: URLs or linked text spawning a web browser  (Read 893 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
URLs or linked text spawning a web browser
« 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
Windows

For OS X, it's the same as for the other un*xoid systems but it runs open (instead of xdg-open) there.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything