Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/electrostat-lab/pi-kiosk
- Owner: Electrostat-Lab
- License: bsd-3-clause
- Created: 2022-03-17T23:50:35.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-09T11:46:39.000Z (over 2 years ago)
- Last Synced: 2024-08-08T23:29:56.179Z (5 months ago)
- Topics: 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);
}
}
```