https://github.com/electrostat-lab/pi-kiosk
Kiosk Script Enabler for Pi applications
https://github.com/electrostat-lab/pi-kiosk
electrostat-lab exec jar kiosk-mode lxde-desktop pi-4b raspios
Last synced: about 1 month ago
JSON representation
Kiosk Script Enabler for Pi applications
- Host: GitHub
- URL: https://github.com/electrostat-lab/pi-kiosk
- Owner: Electrostat-Lab
- License: bsd-3-clause
- Created: 2022-03-17T23:50:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-09T11:46:39.000Z (almost 3 years ago)
- Last Synced: 2025-04-16T12:46:50.337Z (3 months ago)
- Topics: electrostat-lab, exec, jar, kiosk-mode, lxde-desktop, pi-4b, raspios
- Language: Shell
- Homepage: https://wiki.lxde.org/en/Main_Page
- Size: 81.1 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
![]()
# Pi-Kiosk
Kiosk Script Enabler for Pi applications## The raspberry pi reference :
https://www.raspberrypi.com/documentation/## To enable :
1) Download this package.
2) Edit the `Pi-Kiosk/autostart/autostart.sh` script to do what you want on starting up.
3) Copy the package to `/home/pi/`.
4) Start an lxterminal on the pi.
5) Execute the install script and reboot :
```bash
sudo bash /home/pi/Pi-Kiosk/install/install.sh
reboot
```## To disable :
- Execute the uninstall script and reboot :
```bash
sudo bash /home/pi/Pi-Kiosk/uninstall/uninstall.sh
reboot
```## Example for a javaFx fullscreen (immersion mode) application :
```java
package sample;import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;/**
* Fullscreen Jfx application with disabled window exit listener.
*
* @author pavl_g.
*/
public class Main extends Application {@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
primaryStage.setTitle("Hello World");
primaryStage.setScene(new Scene(root));
primaryStage.setFullScreen(true);
primaryStage.setFullScreenExitHint("Welcome to the world !");
primaryStage.setOnCloseRequest(event -> {
});
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
```