Pi4J / pi4j.github.io

The Pi4J Website
https://pi4j.com
5 stars 21 forks source link

JavaFX: add description how to start application without the regular window manager #5

Open FDelporte opened 3 years ago

FDelporte commented 3 years ago

Describe how a JavaFX application can be started without the "full desktop" so the app is running in kiosk mode and it isn't possible to start other applications.

pavly-gerges commented 2 years ago

This may require a system interaction (making the jar auto-start + disabling desktop shortcuts + disable raspiOS panel), i have made something similar to that (using a bash script) but on an amd64 machine running ParrotOS : 1) Opening the system : https://www.youtube.com/watch?v=qsdMObVwlx0&t=52s 2) Auto-start in immersion mode : https://youtu.be/HcerZ-8IWSo

I hope it would be achievable to rebuild this script for the pi.

pavly-gerges commented 2 years ago

@FDelporte I am currently working on this issue, take a look at the code : https://github.com/Software-Hardware-Codesign/Pi-Kiosk

I am planning to migrate the code to C instead of shell and to add the ability to connect to wireless interfaces from a custom script.

The current script features :

1) Disable Raspbian LXDE-Panel (enables desktop fullscreen mode). 2) Disable LXDE-Keybindings (keycombo). 3) Trigger an auto start script that can run another script, jfx application in fullscreen mode, swing app or even jMonkeyEngine game.

This script has a benefit that it cannot only trigger a jfx app on the autostart, but also any app even command line interface apps.

Let me know your opinion.