Evince snap on ubuntu core



I have installed the evince snap (and mir-kiosk) but when I am unable to launch it. Below are the details:

$ snap install evince
evince 3.30.2 from Ken VanDine installed
$ snap install mir-kiosk
mir-kiosk 1.1.2-snap83 from Canonical✓ installed
$ snap connect evince:home :home
$ evince ./Sample.pdf
Unable to init server: Could not connect: Connection refused
Cannot parse arguments: Cannot open display: 
$ snap list
Name               Version                    Rev   Tracking  Publisher    Notes
core               16-2.38                    6673  stable    canonical✓   core
core18             20190409                   941   stable    canonical✓   base
evince             3.30.2                     60    stable    ken-vandine  -
gnome-3-28-1804    3.28.0-9-gce87599.ce87599  23    stable    canonical✓   -
gtk-common-themes  0.1-16-g2287c87            1198  stable    canonical✓   -
mir-kiosk          1.1.2-snap83               1383  stable    canonical✓   -
pc                 18-1                       31    18        canonical✓   gadget
pc-kernel          4.15.0-47.50               196   18        canonical✓   kernel
snapd              2.37.4                     2567  stable    canonical✓   snapd
$ snap interfaces
Slot                             Plug
evince:evince                    -
gnome-3-28-1804:gnome-3-28-1804  evince
gtk-common-themes:gtk-2-themes   -
gtk-common-themes:gtk-3-themes   evince
gtk-common-themes:icon-themes    evince
gtk-common-themes:sound-themes   evince
mir-kiosk:mir                    -
mir-kiosk:wayland                evince
:home                            evince
:network                         evince
:opengl                          mir-kiosk
-                                evince:avahi-observe
-                                evince:cups-control
-                                evince:desktop
-                                evince:desktop-legacy
-                                evince:gsettings
-                                evince:unity7

Can you tell me what is wrong?



Evince is an X.org application, AFAICT there’s no X.org window server on Ubuntu Core systems…


you’d have to re-pack your own evince snap and bundle the xwayland desktop launcher into it to enable it to run on top of mir-kiosk.

Xorg on Core works just fine, but only via the xwayland helper on top of mir-kiosk.


Is there anything in the xwayland desktop launcher that we couldn’t add to the desktop-launch script? If we could integrate it there it would enable any desktop application.


well, it uses the ion window manager for forcing apps into kiosk mode and such … i guess you would need some intelligence in the launcher to detect how an app is running/how the environment is looking and you would add some ballast weight (due to additional stage-packages) to each snap using the desktop launcher …

technically it is surely doable though …