Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/electrostat-lab/pi-kiosk

Kiosk Script Enabler for Pi applications
https://github.com/electrostat-lab/pi-kiosk

exec jar kiosk-mode lxde-desktop pi-4b raspios

Last synced: 20 days ago
JSON representation

Kiosk Script Enabler for Pi applications

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);
}
}
```