diff --git a/packages/app_center/assets/app-center-updates.desktop b/packages/app_center/assets/app-center-updates.desktop new file mode 100644 index 000000000..583dc9c1d --- /dev/null +++ b/packages/app_center/assets/app-center-updates.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +# This desktop entry is required to allow Snapd Desktop Integration +# to open the Snap Center in the "updates" page when the user +# clicks "Show updates" in a notification. DO NOT DELETE. +Type=Application +Version=1.0 +Exec=snap-store --updates %U +Icon=bin/data/flutter_assets/assets/app-center.png +Terminal=false +Categories=System;Utility;PackageManager;SoftwareManagement;Network;Settings; +Keywords=Ubuntu;Applications;Apps;Store;Software;Snaps; +Name=App Center Updates +NoDisplay=true diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 592b12016..38314f5db 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -60,13 +60,13 @@ parts: apps: snap-store: command: bin/snap-store - environment: + environment: &store_env RATINGS_SERVICE_URL: 'ratings.ubuntu.com' RATINGS_SERVICE_PORT: '443' RATINGS_SERVICE_USE_TLS: 'true' desktop: bin/data/flutter_assets/assets/app-center.desktop extensions: [gnome] - plugs: + plugs: &store_plugs - appstream-metadata - desktop - desktop-launch @@ -74,6 +74,17 @@ apps: - snapd-control - packagekit-control +# This entry, along with the corresponding .desktop file, is required +# to allow Snapd Desktop Integration to open the Snap Center in the +# "updates" page when the user clicks "Show updates" in a notification. +# DO NOT DELETE. + show-updates: + command: bin/snap-store --updates + desktop: bin/data/flutter_assets/assets/app-center-updates.desktop + environment: *store_env + extensions: [gnome] + plugs: *store_plugs + slots: packagekit-svc: interface: dbus