Desktop-launch fails with libXss.so.1: cannot open shared object file

Hi all

I’m trying to snap a desktop application.

Running the app without desktop-launch works, but it throws a lot of warnings such as no locale found. Running the app with desktop-launch fails with the following error: /snap/pixum-fotoboek/x1/Pixum Fotowereld: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

Adding libxss1 to state-packages gives a new error, snapd.so not found. I don’t understand what’s going wrong…

I also get the following error on install:

2017-11-02T15:05:22+01:00 INFO snap "pixum-fotoboek" has bad plugs or slots: gnome-3.26-1604 (unknown interface)

I’m installing in devmode, building with cleanbuild

Full snapcraft.yaml here:

name: pixum-fotoboek
version: '0.1'
summary: |
  Fotoboek maken in topkwaliteit: het Pixum Fotoboek
description: |
  Gemakkelijk en snel jouw fotoboek maken in 9 verschillende formaten. Kies
  uit zes verschillende papiersoorten en meerdere soorten kaften en
  bindingen. Lees meer over onze verschillende fotoboek-formaten en
  opties of laat je inspireren door onze tips, workshops en klantenvoorbeelden!
  In een Pixum Fotoboek bundel je de mooiste momenten en herinneringen in topkwaliteit.

grade: devel
confinement: devmode

plugs:
  gnome-3-26-1604:
    interface: content
    target: gnome-platform
    default-provider: gnome-3-26-1604:gnome-3-26-1604


apps:
  pixum-fotoboek:
    command: desktop-launch "$SNAP/Pixum\\ Fotowereld"
    plugs:
      - x11
      - wayland
      - network-control
      - network-observe
      - firewall-control
      - home
      - gsettings
      - account-control
      - mount-observe
      - unity7
      - browser-support
      - desktop-legacy
      - desktop
      - network
      - process-control
      - system-observe
      - gnome-3.26-1604
parts:
  pixum-fotoboek:
    plugin: dump
    source: https://dls.photoprintit.com/api/getClient/12455-nl_BE/hps/f303030303030303030303030303030303030303030303030353635323936324/linux
    source-type: tar
    install: |
      echo `$SNAPCRAFT_PART_INSTALL/install.pl -k -i $SNAPCRAFT_PART_INSTALL <<EOF
      q
      ja
      EOF
      `
    after:
      - desktop-gnome-platform    
    stage-packages:
      - unzip
      - wget

it’s gnome-3-26-1604 - you have a dot . instead of a hyphen -

That’s strange, it’s a hyphen in my snapcraft.yaml file as you can see above:

yes, there is correct, but further down in the apps: section you have a dot.

Thanks! that fixed the second error.

libsnappy is not related to snapd or snapcraft or the snap ecosystem at all. You need the stage-package of libsnappy1v5 because it is needed for your application to run.

libsnappy is:

Snappy is a compression/decompression library. It does not aim for
maximum compression, or compatibility with any other compression
library; instead, it aims for very high speeds and reasonable
compression.

Thanks, that got me confused!