[neon/snap-packaging/discover-snap/ago/remove-unneeded-interfaces] /: Remove unneeded interfaces
Antoine Gonzalez
null at kde.org
Wed Sep 4 14:51:52 BST 2024
Git commit e092afe18ceec5930512165ec62e473292385bd9 by Antoine Gonzalez.
Committed on 04/09/2024 at 13:49.
Pushed by daspood into branch 'ago/remove-unneeded-interfaces'.
Remove unneeded interfaces
The system-snap and home-snap interfaces may be remnants from a previous
implementation of the desktop file launch and other snap interactions,
and access to these files does not seem necessary anymore.
After removing them, discover is still able to install, update, launch
and remove snaps without issue.
M +1 -21 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/discover-snap/-/commit/e092afe18ceec5930512165ec62e473292385bd9
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 45a7aee..90064b0 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -39,8 +39,6 @@ apps:
- network-manager
- system-observe # Needed to read /proc/cgroups
- mount-observe # Needed to read /proc/self/mountinfo
- - system-snap
- - home-snap
plasma-discover-notifier:
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/plasma-discover:$LD_LIBRARY_PATH
@@ -62,8 +60,6 @@ apps:
- network
- network-status
- network-manager
- - system-snap
- - home-snap
assumes:
- snapd2.58.3
compression: lzo
@@ -76,23 +72,7 @@ slots:
interface: dbus
bus: session
name: org.kde.discover.notifier
-plugs:
- system-snap:
- interface: system-files
- read:
- - /snap # $SNAP
- - /var/snap # $SNAP_DATA and $SNAP_COMMON
- - /var/lib/snapd # Needed to read snap dir options
- - /usr/bin/snap # Needed to run snap commands
- - /run/user # Needed to read the Auth file of installed snaps
- - /etc/xdg/menus # Needed for desktop-launch
- - /usr/share/applications/mimeapps.list # Needed for desktop-launch
- home-snap:
- interface: personal-files
- read:
- - $HOME/.snap/auth.json
- write:
- - $HOME/snap # Needed to access and create dirs for installed snaps
+plugs: {}
environment: {}
hooks: {}
layout: {}
More information about the Neon-commits
mailing list