Linux: add freeze_support, Launcher: use spawn (#1890)

This commit is contained in:
black-sliver
2023-06-25 02:24:43 +02:00
committed by GitHub
parent f3e2e429b8
commit a96ff8de16
2 changed files with 49 additions and 1 deletions

View File

@@ -260,7 +260,8 @@ def main(args: Optional[Union[argparse.Namespace, dict]] = None):
if __name__ == '__main__':
init_logging('Launcher')
multiprocessing.freeze_support()
Utils.freeze_support()
multiprocessing.set_start_method("spawn") # if launched process uses kivy, fork won't work
parser = argparse.ArgumentParser(description='Archipelago Launcher')
parser.add_argument('Patch|Game|Component', type=str, nargs='?',
help="Pass either a patch file, a generated game or the name of a component to run.")