From f3b77a9eac8f5fd27300b527069b1f7f2a0cd7ac Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Tue, 29 Oct 2024 20:06:58 +0900 Subject: [PATCH] launches known-issues page for webOS 9 crash --- src/app/ui/root.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/ui/root.c b/src/app/ui/root.c index faa3ca95..61d93eb7 100644 --- a/src/app/ui/root.c +++ b/src/app/ui/root.c @@ -297,6 +297,13 @@ SDL_Window *app_ui_create_window(app_ui_t *ui) { } SDL_Window *win = SDL_CreateWindow("Moonlight", win_x, win_y, win_width, win_height, win_flags); if (win == NULL) { +#ifdef TARGET_WEBOS + // For webOS 24 (9.0), unpopulated jailer config could cause graphics driver initialization failure + // We don't have any way to work around this, so we try to launch a web page about this issue + if (ui->app->os_info.version.major >= 9) { + SDL_OpenURL("https://github.com/mariotaku/moonlight-tv/wiki/Known-Issues"); + } +#endif commons_log_fatal("APP", "Failed to create window: %s", SDL_GetError()); app_halt(ui->app); }