From 707468e45504242ad209dc4463aca29ec5fa7f63 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Fri, 3 Dec 2021 11:08:37 -0600 Subject: [PATCH] Fixed broken Process.spawn due to missing quotes for windows --- lib/application_manager.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/application_manager.rb b/lib/application_manager.rb index c48e8bc..b9c835f 100644 --- a/lib/application_manager.rb +++ b/lib/application_manager.rb @@ -143,9 +143,7 @@ class W3DHub def run(app_id, channel, *args) if (app_data = installed?(app_id, channel)) - application_exe = W3DHub.unix? ? "\"#{app_data[:install_path]}\"" : app_data[:install_path] - - pid = Process.spawn("#{wine_command(app_id, channel)}#{application_exe} #{args.join(' ')}") + pid = Process.spawn("#{wine_command(app_id, channel)}\"#{app_data[:install_path]}\" #{args.join(' ')}") Process.detach(pid) end end