I’ve noticed that my application “Yurjo News” is not displaying the correct icon and not starting up again after initial launch. The icon is the electron icon and not the icon I put in place for the app to use during development and even the store doesn’t display the correct icon I uploaded anymore. At first, the store displayed everything correctly and then the application icon switched to electron’s icon and all the issues started happening. On the website, everything is shown correct -> https://snapcraft.io/yurjo-news
On my local, the application, using “npm start”, launches every time and uses the correct icon as intended.
As far as the snap launching, I’m still having issues. I’m also noticing some other snaps not being able to launch after initial launch. I’m using Ubuntu 20.04 LTS.
Decided to start from scratch and use this: https://snapcraft.io/first-snap#pre-built
I created the snapcraft.yaml and ran this with no issues:
snapcraft clean
snapcraft
I was able to build a snap successful with stage-packages using a .deb as source. Installed it on my local just fine using: sudo snap install yurjo-news_1.0.0_amd64.snap --dangerous --devmode
When everything worked and my app was relaunching fine, I decided to run:
snapcraft login
snapcraft push --release=stable yurjo-news_1.0.0_amd64.snap
Then I’m confronted by this error below after it does the check and uploads the snap file:
The store was unable to accept this snap.
- found errors in file output: unusual mode 'rwsr-xr-x' for entry './usr/lib/yurjo-news/chrome-sandbox'
- checksums do not match. Please ensure the snap is created with either 'snapcraft pack <DIR>' (using snapcraft >= 2.38) or 'mksquashfs <dir> <snap> -noappend -comp xz -all-root -no-xattrs -no-fragments'. If using electron-builder, please upgrade to latest stable (>= 20.14.7). See https://forum.snapcraft.io/t/automated-reviews-and-snapcraft-2-38/4982/17 for details.
When I remove the snap and now reinstall it, I get this:
(yurjo-news:80890): GdkPixbuf-WARNING **: 00:55:09.526: 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: 00:55:09.574: Failed to load module "canberra-gtk-module"
Gtk-Message: 00:55:09.585: Failed to load module "canberra-gtk-module"
(yurjo-news:80890): GLib-GIO-CRITICAL **: 00:55:10.259: g_settings_schema_source_lookup: assertion 'source != NULL' failed
Trace/breakpoint trap (core dumped)
My snapcraft.yaml:
name: yurjo-news
version: 1.0.0
summary: The all-in-one news source on Ubuntu.
description: |
The all-in-one news source on Ubuntu. Get the latest
scoop on technology, sports, wildlife, cooking, and
other things around the world with Yurjo News.
grade: stable
confinement: devmode
base: core18
parts:
yurjo-news:
plugin: dump
source: https://...yurjo-news_1.0.0_amd64.deb
stage-packages:
- libx11-xcb1
- libxcomposite1
- libxcursor1
- libxdamage1
- libxfixes3
- libxi6
- libxrandr2
- libxrender1
- libatk1.0-0
- libatk-bridge2.0-0
- libatspi2.0-0
- libcairo2
- libcups2
- libgdk3.0-cil
- libgtk-3-0
- libpango-1.0-0
- libpangocairo-1.0-0
- libasound2
- libxss1
- libxtst6
- libnspr4
- libnss3
- libnss3-tools
- libcanberra-gtk-module
apps:
yurjo-news:
command: yurjo-news