Thank you for the reply Alan. Yes, my intention is to " create a snap of your app that can run directly on your desktop? (And then fullscreen on the normal desktop?) ".
I am getting an error " qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found. ".
Output of " snap logs -n 100 qello "
2020-12-23T05:20:56Z qello.daemon[18017]: + ln -sf /run/user/0/wayland-0 /run/user/0/snap.qello
2020-12-23T05:20:56Z qello.daemon[18017]: + ln -sf /run/user/0/wayland-0.lock /run/user/0/snap.qello
2020-12-23T05:20:56Z qello.daemon[18017]: + unset DISPLAY
2020-12-23T05:20:56Z qello.daemon[18017]: + exec /snap/qello/x1/bin/qello --fullscreen
2020-12-23T05:20:56Z qello.daemon[18017]: qt.qpa.xcb: could not connect to display
As mentioned in your previous posts, I referred the link for mir-kiosk-apps.
But could not resolve the issue. Following is my qello.yaml file.
name: qello
version: “2”
summary: Qt5 Application Example
description: A simple text editor
grade: stable
confinement: strict
base: core18
apps:
daemon:
#command-chain:
#- bin/wayland-launch
#command: bin/qello
#command: run-daemon wayland-launch $SNAP/bin/qello --fullscreen bin/qello
command: run-daemon wayland-launch $SNAP/bin/qello --fullscreen
#command: desktop-launch $SNAP/bin/qello --fullscreen
daemon: simple
restart-condition: always
qello:
environment:
# Use GTK3 cursor theme, icon theme and open/save file dialogs.
QT_QPA_PLATFORMTHEME: gtk3
QT_DEBUG_PLUGINS: 1
QT_QPA_PLATFORM: wayland
#DISABLE_WAYLAND: 1
# Qt Modules
LD_LIBRARY_PATH: $SNAP/Qt/5.14.2/gcc_64/lib
QT_PLUGIN_PATH: $SNAP/Qt/5.14.2/gcc_64/plugins
QML2_IMPORT_PATH: $QML2_IMPORT_PATH:$SNAP/Qt/5.14.2/gcc_64/qml
QT_QPA_PLATFORM_PLUGIN_PATH: $SNAP/Qt/5.14.2/gcc_64/plugins/platforms
# XDG Config
XDG_CONFIG_DIRS: $SNAP/etc/xdg:$SNAP/usr/xdg:$XDG_CONFIG_DIRS
XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
# Font Config and themes
FONTCONFIG_PATH: $SNAP/etc/fonts/conf.d
FONTCONFIG_FILE: $SNAP/etc/fonts/fonts.conf
# Tell libGL where to find the drivers
LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri
command-chain:
- bin/wayland-launch
command: bin/qello
#plugs: [unity7, home, wayland, opengl, network, gsettings]
layout:
/etc/glvnd:
bind: $SNAP/etc/glvnd
/etc/fonts:
bind: $SNAP/etc/fonts
/etc/xdg:
bind: $SNAP/etc/xdg
/usr/share/X11/xkb:
bind: $SNAP/usr/share/X11/xkb
/usr/share/fonts:
bind: $SNAP/usr/share/fonts
/usr/share/glvnd:
bind: $SNAP/usr/share/glvnd
parts:
qtwayland:
plugin: nil
stage-packages:
- qtwayland5
mir-kiosk-snap-launch:
plugin: dump
source: https://github.com/MirServer/mir-kiosk-snap-launch.git
override-build: |
echo “snapctl set app=rssnews” >> $SNAPCRAFT_PART_BUILD/meta/hooks/install
echo “[ -e “$SNAP/apps/$(snapctl get app)” ] || snapctl set app=rssnews” >> $SNAPCRAFT_PART_BUILD/meta/hooks/post-refresh
$SNAPCRAFT_PART_BUILD/build-with-plugs.sh network opengl wayland
stage-packages:
- inotify-tools
qt5-gtk-platform:
plugin: nil
stage-packages:
- qt5-gtk-platformtheme
qello-app:
plugin: dump
source: .
organize:
qello: bin/
inotify-tools:
plugin: nil
stage-packages: [inotify-tools]
prime:
- usr/bin/inotifywait
- usr/lib
plugs:
network:
opengl:
wayland:
desktop:
x11:
gsettings:
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes