code: def main(demo=False, aschild=False, targets=[]):
      
  
      if aschild:
          print("Starting pyblish-qml")
          compat.main()
          app = Application(APP_PATH, targets)
          app.listen()
  
          print("Done, don't forget to call `show()`")
          return app.exec_()
  
      else:
          print("Starting pyblish-qml server..")
          service = ipc.service.MockService() if demo else ipc.service.Service()
          server = ipc.server.Server(service, targets=targets)
  
          proxy = ipc.server.Proxy(server)
          proxy.show(settings.to_dict())
  
          server.listen()
          server.wait()
docs: Start the Qt-runtime and show the window
  
      Arguments:
          aschild (bool, optional): Run as child of parent process