Hello,
The past week we tried to use the new core24 base for Obsidian.
Obsidian is classic confined app but meta/snap.yaml produced didn't make much sense to me.
In particular, given that the app has direct access to OS, plugs and (probably) layout are unnecessary.
name: obsidian
title: Obsidian
version: 1.13.4
summary: Obsidian
description: Obsidian
architectures:
- amd64
base: core24
apps:
obsidian:
command: command.sh
plugs:
- desktop
- desktop-legacy
- home
- x11
- wayland
- unity7
- network
- gsettings
- audio-playback
- pulseaudio
- opengl
- browser-support
confinement: classic
grade: stable
environment:
TMPDIR: $XDG_RUNTIME_DIR
plugs:
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes
gnome-46-2404:
interface: content
target: $SNAP/gnome-platform
default-provider: gnome-46-2404
gpu-2404:
interface: content
target: $SNAP/gpu-2404
default-provider: mesa-2404
browser-support:
interface: browser-support
allow-sandbox: true
layout:
/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0:
bind: $SNAP/gnome-platform/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0
/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1:
bind: $SNAP/gnome-platform/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1
/usr/share/xml/iso-codes:
bind: $SNAP/gnome-platform/usr/share/xml/iso-codes
/usr/share/libdrm:
bind: $SNAP/gpu-2404/libdrm
/usr/share/drirc.d:
symlink: $SNAP/gpu-2404/drirc.d
Now, the app installs and works fine. However, the submission to snapcraft failed on these ground.

We manually removed from meta/snap.yaml all the plugs and all the layouts, the app still worked fine and it was accepted by snapcraft.
So I believe, the plugs and layout should not be added for classically confined snaps.
Hello,
The past week we tried to use the new core24 base for Obsidian.
Obsidian is classic confined app but
meta/snap.yamlproduced didn't make much sense to me.In particular, given that the app has direct access to OS, plugs and (probably) layout are unnecessary.
Now, the app installs and works fine. However, the submission to snapcraft failed on these ground.

We manually removed from
meta/snap.yamlall the plugs and all the layouts, the app still worked fine and it was accepted by snapcraft.So I believe, the plugs and layout should not be added for classically confined snaps.