def launch(app_name): if app_name is not None: try: if check_installed(app_name): launch_project(app_name, '', '') except ValueError: logger.error("Failed to launch app '{}'".format(str(app_name)))
def launch(app_name, background=False): if app_name is not None: try: if check_installed(app_name): launch_project(app_name, '', '', background=background) except ValueError: logger.error("Failed to launch app '{}'".format(str(app_name)))
def launch(data): if data: (title, attachment_path, app, attachment_name, folder, item_id) = data msg = "Downloaded share: {}".format(title) logger.info(msg) if check_installed(app): launch_project(app, attachment_name, folder) report_share_opened(item_id) else: logger.error("Share hook launch failed")
def launch(data, background=False): if data: (title, attachment_path, app, attachment_name, folder, item_id) = data msg = "Downloaded share: {}".format(title) logger.info(msg) if check_installed(app): launch_project(app, attachment_name, folder, background=background) report_share_opened(item_id) else: logger.error("Share hook launch failed")