Skip to content

Commit

Permalink
Merge pull request ubuntu#1733 from sergio-costas/add-option-to-open-…
Browse files Browse the repository at this point in the history
…in-updates

Add launcher for "updates"
  • Loading branch information
d-loose authored Jul 10, 2024
2 parents e9b720b + 95758aa commit b532fa3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
13 changes: 13 additions & 0 deletions packages/app_center/assets/app-center-updates.desktop
Original file line number Diff line number Diff line change
@@ -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
15 changes: 13 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,31 @@ 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
- network
- 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
Expand Down

0 comments on commit b532fa3

Please sign in to comment.