[SDL] SDL 1.3 roadmap...

Ilya Olevsky info at valengames.com
Mon Oct 8 13:15:59 PDT 2007


> if you add a basic API for clipboard stuff, i also would like to see a 
> ver basic api - merely just a function
> 
> bool open_url(const char* url);
> 
> wich opens the url-string in the systems default browser. this is 
> definitely a thing that comes handy for most apps and is also a thing 
> that needs an abstraction via SDL because every platform handles this 
> completely differently.
> 
> if you agree to add that function / mini-api, i could provide some 
> source code snippets i have collected for win32 and linux.

To my knowledge, there's no standard way to open a default browser on Linux 
(Windows and OS X are straightforward). At least something that would work 
everywhere. I know there's xdg-open from xdg-utils, but this probably won't work 
for every window manager. The only other way I know is to execute the the 
"which" command via popen() to scan for web browsers with a known name, but then 
you don't know which is the default. I'm curious -- which method would SDL use?



More information about the SDL mailing list