Add Store support and unsigned app releases
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# SmartFox session: kiosk compositor (cage) with the launcher.
|
||||
# Fennec OS session: kiosk compositor (cage) with the launcher.
|
||||
# Apps the launcher starts (Chromium etc.) appear full screen on top of it.
|
||||
|
||||
CONF="$HOME/.config/smartfox"
|
||||
@@ -32,4 +32,15 @@ if [ -z "${SMARTFOX_MODE:-}" ] && systemd-detect-virt -q; then
|
||||
fi
|
||||
export SMARTFOX_MODE
|
||||
|
||||
# The compositor: sf-compositor (app switching, volume OSD). If it can't start
|
||||
# (or crashes right away), fall back to cage so the TV still works.
|
||||
# SMARTFOX_COMPOSITOR=cage in /etc/default/smartfox or session.env forces cage.
|
||||
if [ "${SMARTFOX_COMPOSITOR:-sf-compositor}" != cage ]; then
|
||||
start=$(date +%s)
|
||||
/usr/bin/sf-shell-exec sf-compositor --drm -- /usr/bin/sf-launcher-start >>"$LOG" 2>&1 && exit 0
|
||||
if [ $(($(date +%s) - start)) -gt 20 ]; then
|
||||
exit 1 # ran for a while: a normal exit/crash, getty restarts the session
|
||||
fi
|
||||
echo "sf-session: sf-compositor failed, falling back to cage" >>"$LOG"
|
||||
fi
|
||||
exec cage -d -s -- /usr/bin/sf-launcher-start >>"$LOG" 2>&1
|
||||
|
||||
Reference in New Issue
Block a user