From e788c553ce17596d88cc3c16680adcfe4d763c57 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 12 Nov 2019 14:43:08 +0100 Subject: [kiosk-*] Support SLX_BROWSER, add precheck for browser binary SLX_BROWSER is is space separated list of keywords. They are globbed within the kiosk-launch.d directory, so specifying SLX_BROWSER='chromium firefox' would first look for any file named *chromium* and source it, and if that fails for any file named *firefox*. If everything fails or the variable is empty, any file in that directory will be sourced. --- .../data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/modules/kiosk-slxbrowser') diff --git a/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser index 26fd6459..6d844b97 100644 --- a/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser +++ b/core/modules/kiosk-slxbrowser/data/opt/openslx/scripts/kiosk-launch.d/00-slxbrowser @@ -1,6 +1,8 @@ -#!/bin/ash +#!/bin/bash # ^ sourced! +command -v slxbrowser || return 0 + export PATH=$PATH:/opt/openslx/sbin:/opt/openslx/bin OPTS= -- cgit v1.2.3-55-g7522