REVIEWED: OpenURL()

This commit is contained in:
Ray 2022-03-14 15:31:37 +01:00
parent f3b0d7f2fe
commit d2119848ed

View file

@ -3443,7 +3443,7 @@ void OpenURL(const char *url)
#if defined(PLATFORM_DESKTOP) #if defined(PLATFORM_DESKTOP)
char *cmd = (char *)RL_CALLOC(strlen(url) + 10, sizeof(char)); char *cmd = (char *)RL_CALLOC(strlen(url) + 10, sizeof(char));
#if defined(_WIN32) #if defined(_WIN32)
sprintf(cmd, "explorer %s", url); sprintf(cmd, "explorer \"%s\"", url);
#endif #endif
#if defined(__linux__) || defined(__FreeBSD__) #if defined(__linux__) || defined(__FreeBSD__)
sprintf(cmd, "xdg-open '%s'", url); // Alternatives: firefox, x-www-browser sprintf(cmd, "xdg-open '%s'", url); // Alternatives: firefox, x-www-browser