SignageWithAlpineLinux: Unterschied zwischen den Versionen

K
fixup chrome start script
(adapt for tinydm)
K (fixup chrome start script)
* fix file permissions
sign> chmod +x ~/swaystart.sh
sign> mkdir -p /tmp/1000-runtime-dir
 
* configure XDG_RUNTIME_DIR
sign> echo "if test -z \"\${XDG_RUNTIME_DIR}\"; then
export XDG_RUNTIME_DIR=/tmp/\$(id -u)-runtime-dir
if ! test -d \"\${XDG_RUNTIME_DIR}\"; then
mkdir \"\${XDG_RUNTIME_DIR}\"
chmod 0700 \"\${XDG_RUNTIME_DIR}\"
fi
fi" > ~/.profile
root> apk add chromium font-noto
sign> echo "#!/bin/sh
URL=http://example.com/
chromium-browser --kiosk -incognito \
--enable-features=UseOzonePlatform --ozone-platform=wayland \
--start-fullscreen --noerrdialogs --disable-infobars --disk-cache-dir=/dev/null \
--disk-cache-size=1 '\$URLhttp://example.com/' &
while true; do
# after a while all browsers begin to stutter. Here is a crude fix
852

Bearbeitungen