Add Store support and unsigned app releases
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Runs inside cage: apply the output mode, then start the launcher.
|
||||
# Runs inside the compositor (sf-compositor, or cage as a fallback): apply
|
||||
# the output mode, start sf-core, then the launcher.
|
||||
if [ -n "${SMARTFOX_MODE:-}" ]; then
|
||||
OUT=$(wlr-randr | awk 'NR==1 {print $1}')
|
||||
wlr-randr --output "$OUT" --custom-mode "$SMARTFOX_MODE" ||
|
||||
@@ -31,4 +32,10 @@ if [ -x "$PKG/current/bin/sf-launcher" ]; then
|
||||
rm -f "$TRIES"
|
||||
fi
|
||||
fi
|
||||
exec "$LAUNCHER" --fullscreen --apps /usr/share/smartfox/apps --apps /var/lib/sf-pkg/apps
|
||||
# sf-core starts and freezes apps, runs DIAL (YouTube cast) and the AirPlay /
|
||||
# Miracast receivers. It quits by itself when this Wayland session ends.
|
||||
pkill -u "$(id -u)" -x sf-core 2>/dev/null
|
||||
# Store apps (sandboxed, docs/store.md): /var/lib/sf-pkg/store/apps.
|
||||
/usr/bin/sf-shell-exec sf-core --apps /usr/share/smartfox/apps --apps /var/lib/sf-pkg/apps --store-apps /var/lib/sf-pkg/store/apps &
|
||||
|
||||
exec "$LAUNCHER" --fullscreen --apps /usr/share/smartfox/apps --apps /var/lib/sf-pkg/apps --store-apps /var/lib/sf-pkg/store/apps
|
||||
|
||||
@@ -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