Removed usages of eager_load, probably fixed application launching weirdness

This commit is contained in:
2021-11-30 14:00:51 -06:00
parent a3061743f9
commit 74a2ca652b
5 changed files with 11 additions and 8 deletions

View File

@@ -143,7 +143,9 @@ class W3DHub
def run(app_id, channel, *args)
if (app_data = installed?(app_id, channel))
pid = Process.spawn("#{wine_command(app_id, channel)}#{app_data[:install_path]}", *args)
application_exe = W3DHub.unix? ? "\"#{app_data[:install_path]}\"" : app_data[:install_path]
pid = Process.spawn("#{wine_command(app_id, channel)}#{application_exe} #{args.join(' ')}")
Process.detach(pid)
end
end