1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
#!/bin/sh
#
# You can edit the processed file in phoc's build directory.
COMPOSITOR="@compositor@"
PHOC_INI="@devconfig@"
help()
{
cat <<EOF
phoc-dev - Start script for phoc development
This is usually invoked by a systemd unit.
Usage: phoc-dev [-h] [--version]
EOF
exit 0
}
version()
{
echo "@version@"
exit 0
}
case "$1" in
-h|-\?|--help)
help
;;
--version)
version
;;
esac
[ -n "$WLR_BACKENDS" ] || WLR_BACKENDS=drm,libinput
export WLR_BACKENDS
[ -n "$PHOC_DEBUG" ] || PHOC_DEBUG=
export PHOC_DEBUG
[ -n "$G_MESSAGES_DEBUG" ] || G_MESSAGES_DEBUG=all
export G_MESSAGES_DEBUG
exec "${COMPOSITOR}" -C "${PHOC_INI}"
|