From b7e2e69af949038976262c5e3131a868286ca6f6 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Wed, 14 Jan 2026 14:45:16 -0600 Subject: [PATCH] Improve missing wine error message, add link to wiki on settings page, fix crash when saving settings due to disabling winetricks options --- lib/application_manager/task.rb | 3 ++- lib/pages/settings.rb | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/application_manager/task.rb b/lib/application_manager/task.rb index 9727790..992c4cd 100644 --- a/lib/application_manager/task.rb +++ b/lib/application_manager/task.rb @@ -183,7 +183,8 @@ class W3DHub # Wine present? if W3DHub.unix? wine_present = W3DHub.command("which #{Store.settings[:wine_command]}") - fail!("FAIL FAST: `which #{Store.settings[:wine_command]}` command failed, wine is not installed. Will be unable to create prefixes or launch games.") unless wine_present + fail!("FAIL FAST: `which #{Store.settings[:wine_command]}` command failed, wine is not installed.\n\n"\ + "Will be unable to launch game.\n\nCheck wine options in launcher's settings.") unless wine_present end end diff --git a/lib/pages/settings.rb b/lib/pages/settings.rb index 9fb2bfd..14ba495 100644 --- a/lib/pages/settings.rb +++ b/lib/pages/settings.rb @@ -53,6 +53,10 @@ class W3DHub end para "Leave empty to use default global prefix.", margin_left: 16 + link "Wiki: Getting Started With Wine", tip: "https://github.com/cyberarm/w3d_hub_linux_launcher/wiki/Getting-Started-With-Wine", margin_top: 16, margin_left: 16, border_color_bottom: 0xff_777777 do + W3DHub.url("https://github.com/cyberarm/w3d_hub_linux_launcher/wiki/Getting-Started-With-Wine") + end + # TODO: support winetricks stuff # tagline "Winetricks", margin_top: 16 # caption "Winetricks Command", margin_left: 16 @@ -130,7 +134,7 @@ class W3DHub Store.settings[:wine_command] = @wine_command_input.value Store.settings[:wine_prefix] = @wine_prefix_input.value - Store.settings[:winetricks_command] = @winetricks_command_input.value + Store.settings[:winetricks_command] = @winetricks_command_input.value if @winetricks_command_input Store.settings.save_settings