X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/1be063fca4e4b517ec4d4c0d8703a3f6be1cf049..d28d65fa09cf76015ebfd65ec9485c8bdd108b22:/tools/actions/app_manager.py?ds=sidebyside diff --git a/tools/actions/app_manager.py b/tools/actions/app_manager.py index 51002cb..ae9cb25 100644 --- a/tools/actions/app_manager.py +++ b/tools/actions/app_manager.py @@ -28,6 +28,8 @@ def install(args): platformService = IPlatform.get_service(args) if platformService: platformService.installApp("/data/waydroid_tmp/base.apk") + else: + logging.error("Failed to access IPlatform service") os.remove(tmp_dir + "/base.apk") if session["state"] == "FROZEN": @@ -49,6 +51,8 @@ def remove(args): ret = platformService.removeApp(args.PACKAGE) if ret != 0: logging.error("Failed to uninstall package: {}".format(args.PACKAGE)) + else: + logging.error("Failed to access IPlatform service") if session["state"] == "FROZEN": cm.Freeze() @@ -65,7 +69,7 @@ def maybeLaunchLater(args, launchNow): launchNow() except dbus.DBusException: logging.error("Starting waydroid session") - tools.actions.session_manager.start(args, launchNow) + tools.actions.session_manager.start(args, launchNow, background=False) def launch(args): def justLaunch(): @@ -103,11 +107,11 @@ def list(args): print("categories:") for cat in app["categories"]: print("\t" + cat) + else: + logging.error("Failed to access IPlatform service") if session["state"] == "FROZEN": cm.Freeze() - else: - logging.error("Failed to access IPlatform service") except dbus.DBusException: logging.error("WayDroid session is stopped") @@ -123,6 +127,8 @@ def showFullUI(args): statusBarService.expand() time.sleep(0.5) statusBarService.collapse() + else: + logging.error("Failed to access IPlatform service") maybeLaunchLater(args, justShow) def intent(args):