I am in the unenviable position of taking an existing Java Swing app and converting it into a kiosk application on an ubuntu 16 desktop. I reviewed the ubuntu kiosk docs:
It looks like I need to convert the Java into a snap and use Case #2 (To enable these applications we will embed a tiny X11 server into your application package, which translates X11 calls to Wayland ones.)
I’ve spent some time on this and have gotten the snap to run using the mir-kios-snap-launch example. But I’m getting:
Java.io.IOException: Cannot run program “/usr/bin/xprop”: error=2, No such file or directory.
I assume it’s because I have not managed to get the X11 server configured correctly.
If there’s any examples or anything I would appreciate any help on this.
Here is my snapcraft.yaml:
name: java-test description: java test summary: This is the summary version: "1.0" base: core18 grade: devel confinement: devmode apps: daemon: command-chain: - bin/run-daemon - bin/wayland-launch daemon: simple restart-condition: always command: bin/jt/data/jt.sh jt-start: command-chain: - bin/wayland-launch command: bin/jt/data/jt.sh environment: JAVA_HOME: $SNAP/usr/lib/jvm/java-1.8.0-openjdk-$SNAP_ARCH PATH: $JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH plugs: [wayland, network, opengl, unity7] parts: jt-start: plugin: dump source: . organize: jt/: bin/jt/ stage-packages: [openjdk-8-jre, openjdk-8-demo] mir-kiosk-snap-launch: plugin: dump source: https://github.com/mir-kiosk-apps/mir-kiosk-snap-launch.git override-build: $SNAPCRAFT_PART_BUILD/build-with-plugs.sh opengl pulseaudio wayland stage-packages: - inotify-tools
Also not sure on how to put code in here? It’s eating up my yaml file.