Repository: lutris/lutris

Issue:
Unable to install from local script [“Waiting for response from https://lutris.com"]
**Describe the bug**

It's not possible to install scripts locally. When trying to install a script with the command:

lutris -i /path/to/file

There comes a popup window "Waiting for response from https://lutris.com", which does nothing, only the cancel button does stuff.


**Expected behavior**

Just installing the game from a local script

**Current behavior**

Lutris idles and does nothing after running the command above.

**Steps to reproduce**

- lutris -i /path/to/file

**Lutris debugging output**

>> lutris -d -i /mnt/Games/Downloads/magic-the-gathering-arena-latest 
INFO     2019-09-09 22:39:21,455 [application.do_command_line:225]:Running Lutris 0.5.3
INFO     2019-09-09 22:39:21,456 [startup.check_driver:60]:Using X.Org
INFO     2019-09-09 22:39:21,456 [startup.check_driver:65]:Running Mesa driver 19.2.0 on Radeon RX 580 Series (POLARIS10, DRM 3.32.0, 5.2.13-1-ck-haswell, LLVM 8.0.1) (0x67df)
INFO     2019-09-09 22:39:21,457 [startup.check_driver:75]:GPU: 1002:67DF 1043:0525 using amdgpu drivers
WARNING: Experimental compiler backend enabled. Here be dragons! Incorrect rendering, GPU hangs and/or resets are likely
WARNING: Experimental compiler backend enabled. Here be dragons! Incorrect rendering, GPU hangs and/or resets are likely
INFO     2019-09-09 22:39:21,545 [startup.check_vulkan:129]:Vulkan is supported
INFO     2019-09-09 22:39:21,546 [dxvk.get_dxvk_versions:21]:Updating DXVK versions
DEBUG    2019-09-09 22:39:21,867 [http.get:68]:GET https://lutris.net/api/runtime
DEBUG    2019-09-09 22:39:21,878 [store.get_missing_media:198]:Requesting missing icons from API for d2, frontschweine, pokemon-x
DEBUG    2019-09-09 22:39:21,879 [http.get:68]:GET https://lutris.net/api/games
INFO     2019-09-09 22:39:21,939 [dxvk.get_dxvk_versions:21]:Updating D9VK versions
DEBUG    2019-09-09 22:39:22,003 [api.get_game_api_page:132]:Loaded 1 games from page 1
DEBUG    2019-09-09 22:39:22,203 [interpreter.read_script:68]:Loading script(s) from /mnt/Games/Downloads/magic-the-gathering-arena-latest
INFO     2019-09-09 22:39:30,424 [application.do_shutdown:446]:Shutting down Lutris


**System information**

[lutris-issue-report.zip](https://github.com/lutris/lutris/files/3592543/lutris-issue-report.zip)

**Screenshots**

[![Screenshot from Gyazo](https://gyazo.com/a84031cf18b7752493280e490fd63f57/raw)](https://gyazo.com/a84031cf18b7752493280e490fd63f57)



Discussion:

Resolving patch:
diff --git a/lutris/gui/installerwindow.py b/lutris/gui/installerwindow.py
--- a/lutris/gui/installerwindow.py
+++ b/lutris/gui/installerwindow.py
@@ -84,12 +84,15 @@ def __init__(
 
         self.continue_handler = None
 
-        self.get_scripts()
-
-        self.title_label.set_markup("Waiting for response from %s" % (settings.SITE_URL))
-        self.add_spinner()
-        self.widget_box.show()
-        self.title_label.show()
+        # check if installer is local or online
+        if system.path_exists(self.installer_file):
+            self.get_scripts(local_script=True)
+        else:
+            self.title_label.set_markup("Waiting for response from %s" % (settings.SITE_URL))
+            self.add_spinner()
+            self.widget_box.show()
+            self.title_label.show()
+            self.get_scripts(local_script=False)
 
         self.present()
 
@@ -100,9 +103,8 @@ def add_button(self, label, handler=None):
         self.action_buttons.add(button)
         return button
 
-    def get_scripts(self):
-        if system.path_exists(self.installer_file):
-            # local script
+    def get_scripts(self, local_script=False):
+        if local_script:
             self.on_scripts_obtained(interpreter.read_script(self.installer_file))
         else:
             jobs.AsyncCall(


Test patch: