forked from mirrors/principia
Drop fallback for old SDL <2.0.14 on Linux
Debian Buster (10) is EOL in a month, Bullseye (11) and derivatives all have 2.0.14+ available.
This commit is contained in:
parent
fae7194f42
commit
bf3a3a3a2e
1 changed files with 0 additions and 8 deletions
|
|
@ -11497,14 +11497,6 @@ void ui::open_url(const char *url)
|
|||
#if SDL_VERSION_ATLEAST(2,0,14)
|
||||
tms_infof("open url (SDL): %s", url);
|
||||
SDL_OpenURL(url);
|
||||
#elif defined(TMS_BACKEND_LINUX)
|
||||
// Fallback for old Linux distros that don't contain SDL2 2.0.14
|
||||
tms_infof("open url (Fallback): %s", url);
|
||||
|
||||
if (fork() == 0) {
|
||||
execlp("xdg-open", "xdg-open", url, NULL);
|
||||
_exit(0);
|
||||
}
|
||||
#else
|
||||
#error "SDL2 2.0.14+ is required for this platform"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue