Hi all, I created a whatsapp linux client desktop application. No matter how I tried the QR code doesn’t load with the strict confinement. Here is my snapcraft:
name: whatsapp-for-linux
base: core18
version: '1.0.1'
summary: An unofficial WhatsApp linux client.
description: An unofficial WhatsApp linux client written in C++ with the help of gtkmm-3.0 and webkit2.
grade: stable
confinement: strict
parts:
whatsapp-for-linux:
source-type: git
source-branch: master
source: https://github.com/eneshecan/whatsapp-for-linux
plugin: cmake
configflags:
- -DCMAKE_BUILD_TYPE=Release
build-packages:
- g++
- cmake
- make
- libgtkmm-3.0-dev
- libwebkit2gtk-4.0-dev
stage-packages:
- libgtkmm-3.0-1v5
apps:
whatsapp-for-linux:
command: usr/bin/whatsapp-for-linux
desktop: usr/share/applications/whatsapp-for-linux.desktop
extensions: [gnome-3-28] # This takes care of most of the things for us
plugs:
- account-control
- network
- network-manager
- browser-support
- camera
- audio-playback
- audio-record
- home
- opengl
- upower-observe
Try installing snappy-debug and then run it in a terminal while you reproduce the problem. If there is a confinement issue that is preventing the QR code from being generated it will appear in the terminal window along with potential solutions.
The first one is unrelated, so can be ignored… The second one will go away if you snap connect whatsapp-for-linux:network-manager but I think it is unrelated, too.
Most of the things are in the gnome extension although the app doesn’t need so may packages. However, snapcraft doesn’t warn me about any missing packages.
well, i was just imagining that you might miss some image processing library to create the QR code that building the snap in classic mode gains you access to while it might be missing in strict or some such …
(there is really no reason why you should need classic for such an app, something must be missing inside the confinement that your host provides otherwise)
Well, after waiting 10 minutes it asked to reload the QR code and it worked. I guess it’s a problem with the webkit2gtk library in a snap environment. As a result, we don’t need a classic confinement for now. Thanks for all the help.