[SDL] SDL 1.3 roadmap...
Andre Krause
post at andre-krause.net
Tue Oct 9 03:32:35 PDT 2007
Ilya Olevsky wrote:
>> 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?
>
i know - this is exactly the problem with linux. isnt it a shame?
but maybe someone here on the list can take the burden and find a method
that work for the most common linux distro's ? and on systems, where no
reliable method is known, open_url could return false if it was not able
to open the url. so the application could present at least the
url-string and put it in the clipboard (if sdl 1.3 adds clipboard support)
More information about the SDL
mailing list