I rather unfortunately need to upgrade my succesful core18 based snap to core20. The snap used the gnome-3-34 extension to satisfy the demands of a GUI based snap running on a desktop pc. However it is not possible to use this extension on core20, and despite my attempts to duplicate the required functionality of the extension the core20 based version of my snap does not run properly.
On startup, the following warnings appear:
(process:36516): Gtk-WARNING **: 15:20:52.271: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message: 15:20:52.486: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:20:52.496: Failed to load module "canberra-gtk-module"
The snap starts normally, however when I attempt to open a standard file chooser dialogue from within the snap I get the following crash report:
(java:36516): GLib-GIO-WARNING **: 15:21:12.099: Error creating IO channel for /proc/self/mountinfo: Permission denied (g-file-error-quark, 2)
(java:36516): Gtk-WARNING **: 15:21:12.115: Could not find the icon 'user-home-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
(java:36516): Gtk-WARNING **: 15:21:12.115: Could not load a pixbuf from /org/gtk/libgtk/icons/16x16/status/image-missing.png.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Aborted (core dumped)
My snapcraft.yaml file is as follows:
name: photonotebook
title: PhotoNoteBook
version: "1.3.4"
summary: A digital photography library manager and notebook
license: Proprietary
description: PhotoNoteBook is a digital photograph library manager enabling collections of images and the making of notes and memo's for the collections and the photographs.
icon: photonotebook.png
confinement: strict
grade: stable
base: core20
apps:
photonotebook:
command: bin/photonotebook
plugs:
gtk-3-themes:
interface: content
target: $SNAP/share/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/share/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/share/sounds
default-provider: gtk-common-themes
plugs: [home, unity7, opengl, network, removable-media, optical-drive ,desktop, desktop-legacy, gsettings, x11, wayland]
parts:
photonotebook:
plugin: dump
source: ./photonotebook/
stage-packages: [libgif7, libx11-6, libxext6, libxi6, libxrender1, libxtst6, libasound2, libjpeg8, liblcms2-2, libfreetype6, libpng16-16, libcanberra-gtk-module, libcanberra-gtk3-module, fontconfig-config, fonts-liberation,
ttf-dejavu-core, ttf-ubuntu-font-family,libgtk-3-0, adwaita-icon-theme-full, gnome-icon-theme, hicolor-icon-theme, gtk2-engines-pixbuf]
I realise that trying to duplicate the functionality of the gnome-3-34 extension is likely to be a little complex, and I note that others have had similar issues, but I have found no solution.
All suggestions will be very gratefully received, as at the moment I have a snap with a growing user base and no way to maintain or improve it.
cheers
Alan