Hi. I am trying run my PyQt5 snap on Ubuntu Core 20. So I am following this article : https://ubuntu.com/tutorials/x11-kiosk#1-overview
The updated the snapcraft.yaml according to my needs. But after snapping when I installed it, it printed some logs and then got stuck and is not moving forward.
Here is my snapcraft.yaml
name: cluemaster-mediadisplay
base: core20
version: '1.0.8'
summary: snap
description: description
grade: stable
confinement: strict
apps:
cluemaster-mediadisplay:
command-chain:
- env-setup
command: usr/local/bin/x11_kiosk_launch bin/prepare-launch $SNAP/cluemaster_display
plugs:
- home
- desktop-legacy
- desktop
- wayland
- x11
- unity7
- network
- opengl
- gsettings
- pulseaudio
- network-bind
- screen-inhibit-control
- audio-playback
- shutdown
- process-control
- mount-observe
- network-control
parts:
copy-source-code:
plugin: dump
source: cluemaster_display/
stage-packages:
- ffmpeg
- locales
- libmpv1
- va-driver-all
- vdpau-driver-all
- mesa-va-drivers
- libvdpau-va-gl1
- libglu1-mesa
- samba-libs
- git
- python3-dbus
- qtwayland5
- mesa-utils
stage-snaps: [mir-kiosk-x11]
desktop-files-and-icons:
plugin: dump
source: snap/gui/
organize:
"cluemaster-mediadisplay.desktop": "usr/share/applications/"
"cluemaster-mediadisplay.png": "usr/share/applications/"
stage:
- usr/share/applications/cluemaster-mediadisplay.desktop
- usr/share/applications/cluemaster-mediadisplay.png
extras:
plugin: dump
source: static/
organize:
"prepare-launch": "bin/"
layout:
/usr/share/libdrm/amdgpu.ids:
symlink: $SNAP/usr/share/libdrm/amdgpu.ids
/usr/share/X11:
bind: $SNAP/usr/share/X11
/usr/bin/xkbcomp:
symlink: $SNAP/usr/bin/xkbcomp
/usr/share/icons:
bind: $SNAP/usr/share/icons
/usr/share/fonts:
bind: $SNAP/usr/share/fonts
/etc/fonts:
bind: $SNAP/etc/fonts
Here is the console logs
++ dirname /run/user/1000/snap.cluemaster-mediadisplay
+ real_xdg_runtime_dir=/run/user/1000
+ '[' '!' -O /run/user/1000 ']'
++ find /snap/cluemaster-mediadisplay/x2/hacks -name 'setup-*'
+ for hack in $(find "${SNAP}/hacks" -name setup-\*)
+ . /snap/cluemaster-mediadisplay/x2/hacks/setup-gl
++ set -x
++ export __EGL_VENDOR_LIBRARY_DIRS=/snap/cluemaster-mediadisplay/x2/etc/glvnd/egl_vendor.d:/snap/cluemaster-mediadisplay/x2/usr/share/glvnd/egl_vendor.d
++ __EGL_VENDOR_LIBRARY_DIRS=/snap/cluemaster-mediadisplay/x2/etc/glvnd/egl_vendor.d:/snap/cluemaster-mediadisplay/x2/usr/share/glvnd/egl_vendor.d
++ export LIBGL_DRIVERS_PATH=/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu/dri
++ LIBGL_DRIVERS_PATH=/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu/dri
++ export LD_LIBRARY_PATH=/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu:/snap/cluemaster-mediadisplay/x2/lib/x86_64-linux-gnu:/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void:/snap/cluemaster-mediadisplay/x2/lib:/snap/cluemaster-mediadisplay/x2/usr/lib:/snap/cluemaster-mediadisplay/x2/lib/x86_64-linux-gnu:/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu
++ LD_LIBRARY_PATH=/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu:/snap/cluemaster-mediadisplay/x2/lib/x86_64-linux-gnu:/var/lib/snapd/lib/gl:/var/lib/snapd/lib/gl32:/var/lib/snapd/void:/snap/cluemaster-mediadisplay/x2/lib:/snap/cluemaster-mediadisplay/x2/usr/lib:/snap/cluemaster-mediadisplay/x2/lib/x86_64-linux-gnu:/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu
+ for hack in $(find "${SNAP}/hacks" -name setup-\*)
+ . /snap/cluemaster-mediadisplay/x2/hacks/setup-mir
++ set -x
++ export MIR_SERVER_PLATFORM_PATH=/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu/mir/server-platform
++ MIR_SERVER_PLATFORM_PATH=/snap/cluemaster-mediadisplay/x2/usr/lib/x86_64-linux-gnu/mir/server-platform
++ export MIR_SERVER_XWAYLAND_PATH=/snap/cluemaster-mediadisplay/x2/usr/bin/Xwayland
++ MIR_SERVER_XWAYLAND_PATH=/snap/cluemaster-mediadisplay/x2/usr/bin/Xwayland
+ for hack in $(find "${SNAP}/hacks" -name setup-\*)
+ . /snap/cluemaster-mediadisplay/x2/hacks/setup-wayland-host
++ set -x
++ snapctl is-connected wayland
+++ dirname /run/user/1000/snap.cluemaster-mediadisplay
++ real_wayland=/run/user/1000/wayland-0
++ '[' '!' -O /run/user/1000/wayland-0 ']'
+++ dirname /run/user/1000/wayland-0
++ inotifywait --event create /run/user/1000
Setting up watches.
Watches established.
/run/user/1000/ CREATE,ISDIR speech-dispatcher
++ '[' '!' -O /run/user/1000/wayland-0 ']'
+++ dirname /run/user/1000/wayland-0
++ inotifywait --event create /run/user/1000
Setting up watches.
Watches established.
After a little research, I found its related to inotify
Any suggestions would be really appreciated. If you have any other idea to achieve this. That would be great too.
Thanks in advance.