If Steam supervisor is enabled, only enable after desktop is loaded

This commit is contained in:
Ali Ansari
2023-08-15 07:55:34 +03:00
parent d2b4d2cae7
commit edab557c20
2 changed files with 7 additions and 2 deletions

View File

@@ -35,11 +35,16 @@ if [[ ! -f /tmp/.desktop-apps-updated.lock ]]; then
"
touch /tmp/.desktop-apps-updated.lock
fi
# Run the desktop environment
echo "**** Starting Xfce4 ****"
/usr/bin/startxfce4 &
desktop_pid=$!
if [ "${ENABLE_STEAM:-}" = "true" ]; then
echo "Start Steam service"
sudo supervisorctl start steam
fi
# WAIT FOR CHILD PROCESS:
wait "$desktop_pid"