I have a dotnet core app that uses GTK3 which I am trying to snap.
I gave up on the dotnet plugin, because it’s broken. see snapcraft 1812500 (sorry new users are only allowed 2 links )
Instead I am pre-building as a selfcontained app and then using the dump plugin.
But when I try that I get:
You need to connect this snap to the gnome platform snap.
You can do this with those commands:
snap install gnome-3-28-1804
snap connect poc-sharp:gnome-3-28-1804 gnome-3-28-1804
Sorry what? my users have to run a second command after install my snap to get it to work?
What did I do wrong?
here is my snapcraft.yaml
name: poc-sharp # you probably want to 'snapcraft register <name>' base: core18 # the base snap is the execution environment for this snap version: '0.1' # just for humans, typically '1.2+git' or '1.3.2' summary: GUI for Tait PoC User Agent # 79 char long summary description: | Poc Sharp is a graphical interface and libarary for controlling a Tait PoC User Agent. It does not include the PoC User Agent that must be obtained seperately. grade: devel # must be 'stable' to release into candidate/stable channels confinement: devmode # use 'strict' once you have the right plugs and slots slots: # for GtkApplication registration sharp: interface: dbus bus: session name: org.gnome.poc-sharp apps: poc-sharp: command: bin/desktop-launch $SNAP/PocSharpGui plugs: - desktop - desktop-legacy - wayland - x11 - unity7 - gsettings parts: poc-sharp: # See 'snapcraft plugins' after: [desktop-gnome-platform] source: PocSharpGui/Install source-type: local plugin: dump stage-packages: - libasn1-8-heimdal - libcurl4 - libgssapi3-heimdal - libhcrypto4-heimdal - libheimbase1-heimdal - libheimntlm0-heimdal - libhx509-5-heimdal - libkrb5-26-heimdal - libldap-2.4-2 - libnghttp2-14 - libpsl5 - libroken18-heimdal - librtmp1 - libsasl2-2 - libwind0-heimdal - libgtk3.0-cil desktop-gnome-platform: source: https://github.com/ubuntu/snapcraft-desktop-helpers.git source-depth: 1 source-subdir: gtk plugin: make build-packages: - build-essential - libgtk-3-dev override-build: | snapcraftctl build mkdir -pv $SNAPCRAFT_PART_INSTALL/gnome-platform plugs: gnome-3-28-1804: interface: content target: $SNAP/gnome-platform default-provider: gnome-3-28-1804 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