#!/bin/sh # Launched by greetd as the `greeter` user. # # greetd runs `exec `, so the command must be a single executable # (not a `mkdir ... && cage ...` compound list). set -eu LOG=/tmp/greeter.log exec >>"$LOG" 2>&1 echo "=== $(date -Is) starting greeter ===" mkdir -p /var/lib/greetd/run /var/lib/greetd/.cache chmod 700 /var/lib/greetd/run export HOME=/var/lib/greetd export XDG_RUNTIME_DIR=/var/lib/greetd/run export XDG_CACHE_HOME=/var/lib/greetd/.cache exec /usr/bin/cage -m last -s -d -- \ /usr/bin/dbus-run-session -- \ /usr/bin/ags run /etc/greetd/ags/greeter.tsx