I had no problem and building and running the rust app.
But once published for snapcraft, build is fine, but running it would have this error.
(process:20418): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message: Failed to load module "unity-gtk-module"
(svgbob-desktop:20418): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
** (svgbob-desktop:20418): ERROR **: Unable to fork a new child process: Failed to execute child process "/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWebProcess" (No such file or directory)
Trace/breakpoint trap
I understand that webkit is linked dynamically, but it seems snapcraft wasn’t able to successfully link it at launch.
This is my snapcraft.yaml
name: svgbob-editor
version: git
summary: Svgbob desktop version
description: |
Svgbob desktop versio for release
confinement: devmode
apps:
svgbob-editor:
command: svgbob-desktop
environment:
LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/:$LD_LIBRARY_PATH
parts:
svgbob-editor:
source: .
plugin: rust
build-attributes: [no-system-libraries]
build-packages:
- make
- pkg-config
stage-packages:
- libwebkit2gtk-4.0-37
- libgtk-3-0
Anyone know what do I miss?