Skip to content

Commit

Permalink
global: add TAISEI_KIOSK_PREVENT_QUIT env var
Browse files Browse the repository at this point in the history
Defaults to 1. Set to 0 to be able to close the window in kiosk mode.
This is intended for testing and not recommended for deployment.
  • Loading branch information
Akaricchi committed May 4, 2024
1 parent 5d82a42 commit 34a2633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bool gamekeypressed(KeyIndex key) {
static SDL_atomic_t quitting;

void taisei_quit(void) {
if(global.is_kiosk_mode) {
if(global.is_kiosk_mode && env_get("TAISEI_KIOSK_PREVENT_QUIT", true)) {
log_info("Running in kiosk mode; exit request ignored");
return;
}
Expand Down

0 comments on commit 34a2633

Please sign in to comment.