Skip to content

Commit c3a5771

Browse files
authored
Merge pull request #67 from ManualForArchipelago/client-allow-nogui
Support launching client with nogui
2 parents e78ddbe + e47bed3 commit c3a5771

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,13 @@ def client_data(self):
400400
###
401401

402402
def launch_client(*args):
403+
import CommonClient
403404
from .ManualClient import launch as Main
404-
launch_subprocess(Main, name="Manual client")
405+
406+
if CommonClient.gui_enabled:
407+
launch_subprocess(Main, name="Manual client")
408+
else:
409+
Main()
405410

406411
class VersionedComponent(Component):
407412
def __init__(self, display_name: str, script_name: Optional[str] = None, func: Optional[Callable] = None, version: int = 0, file_identifier: Optional[Callable[[str], bool]] = None):

0 commit comments

Comments
 (0)