You should probably use some other port, as 6060 is the default for godoc when running in local mode. I know most DF users won't be running godoc, but most of the time I will be
Ha, yeah. I just lazily copied that. Will change ASAP.
https://github.com/schmichael/legendarygopher/issues/16I did some work with automatically starting the user's web browser for the Rubble web UI. On windows I use cgo to call the shellex API, but for other systems I call a shell script. If you have a C cross compiler you can use my Windows launcher code (which comes with the Rubble package), but my Linux launcher script really sucks you probably don't want to even look at that (I don't know shell script).
Oooh, I'm not familiar with Rubble. Is it open source? Sorry, I've only ever played vanilla DF until I had a fortress prematurely become the mountainhome due to goblins sacking my civ's capital! After they sacked me as well I suddenly became very interested in digging into Legends!
I think every OS has a way to open a file/URL using the default application registered to handle it.
On OSX I think the "open http://..." command will Do The Right Thing.
On Linux it's "xdg-open" because "open" is some useless command from the 80s Linux wouldn't dare override.
I haven't used Windows since XP, but back then you could call "start.exe http://..." and it would open the url in your default browser.
Might help you avoid shell scripts and cgo!