distribution/packages/wayland/util/foot/scripts/foot.sh
2022-07-11 06:58:58 -04:00

18 lines
472 B
Bash
Executable file

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
FOOT_CONFIG_DIR=/storage/.config/foot
FOOT_CONFIG_DEFAULT=/usr/share/foot/foot.ini
FOOT_LOG_FILE=/var/log/foot.log
if [ ! -f ${FOOT_CONFIG_DIR}/foot.ini ]; then
mkdir -p ${FOOT_CONFIG_DIR}
cp ${FOOT_CONFIG_DEFAULT} ${FOOT_CONFIG_DIR}
fi
if [ -z "${LOCPATH}" ]; then
export LOCPATH="/storage/.cache/locpath"
fi
/usr/bin/foot > ${FOOT_LOG_FILE} 2>&1