From: snoutie <71790678+SnoutBug@users.noreply.github.com> Date: Fri, 17 Mar 2023 19:08:51 +0000 (+0100) Subject: Add App Settings to .desktop file X-Git-Tag: 1.4.1~11 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/commitdiff_plain/7709bfa2a21b984683b96f25c5818d12c5eaa06a Add App Settings to .desktop file This adds an option to open the App's Settings page to easily manage the app's permissions or to uninstall the app --- diff --git a/tools/services/user_manager.py b/tools/services/user_manager.py index 5e03d25..482108d 100644 --- a/tools/services/user_manager.py +++ b/tools/services/user_manager.py @@ -28,6 +28,10 @@ def start(args, session, unlocked_cb=None): lines.append("Exec=waydroid app launch " + packageName) lines.append("Icon=" + args.waydroid_data + "/icons/" + packageName + ".png") lines.append("X-Purism-FormFactor=Workstation;Mobile;") + lines.append("Actions=app_settings;") + lines.append("[Desktop Action app_settings]") + lines.append("Name=App Settings") + lines.append("Exec=waydroid app intent android.settings.APPLICATION_DETAILS_SETTINGS package:" + packageName) desktop_file = open(desktop_file_path, "w") for line in lines: desktop_file.write(line + "\n")