Requirements for Custom Apps
A presentation on Tooloop OS needs to adhere to some simple standards so it can be started and stopped automatically.
Location
It makes sense to follow the recommended folder structure.
- Your application should live in
/assets/presentation/
- Data files like images or videos should go to
/assets/data/
- Log files should go to
/assets/logs/
Start and Stop Scripts
You need to provide two scripts that are called by Tooloop OS to start, stop or restart the app
/assets/presentation/start-presentation.sh
/assets/presentation/stop-presentation.sh
Whatever command is needed to start or stop your app, put it in there.
These scripts are called from
- the autostart script
- the desktop menu
- the terminal aliases
- the control center
Here are two simple examples for start and stop scripts.
start-presentation.sh
#!/bin/bash
/assets/presentation/example-presentation &
exit 0
stop-presentation.sh
#!/bin/bash
killall example-presentation &
exit 0