If Steam supervisor is enabled, only enable after desktop is loaded
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
echo "**** Configure Steam ****"
|
echo "**** Configure Steam ****"
|
||||||
|
|
||||||
if [ "${ENABLE_STEAM:-}" = "true" ]; then
|
if [ "${ENABLE_STEAM:-}" = "true" ]; then
|
||||||
echo "Enable Steam service"
|
# echo "Enable Steam service"
|
||||||
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/steam.ini
|
# sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/steam.ini
|
||||||
# Remove old autostart script. We should be starting steam with the supervisor service
|
# Remove old autostart script. We should be starting steam with the supervisor service
|
||||||
mkdir -p "${USER_HOME:?}/.config/autostart"
|
mkdir -p "${USER_HOME:?}/.config/autostart"
|
||||||
# if grep "Exec=/usr/bin/flatpak" "${USER_HOME:?}/.config/autostart/Steam.desktop" &> /dev/null; then
|
# if grep "Exec=/usr/bin/flatpak" "${USER_HOME:?}/.config/autostart/Steam.desktop" &> /dev/null; then
|
||||||
|
|||||||
@@ -35,11 +35,16 @@ if [[ ! -f /tmp/.desktop-apps-updated.lock ]]; then
|
|||||||
"
|
"
|
||||||
touch /tmp/.desktop-apps-updated.lock
|
touch /tmp/.desktop-apps-updated.lock
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run the desktop environment
|
# Run the desktop environment
|
||||||
echo "**** Starting Xfce4 ****"
|
echo "**** Starting Xfce4 ****"
|
||||||
/usr/bin/startxfce4 &
|
/usr/bin/startxfce4 &
|
||||||
desktop_pid=$!
|
desktop_pid=$!
|
||||||
|
|
||||||
|
if [ "${ENABLE_STEAM:-}" = "true" ]; then
|
||||||
|
echo "Start Steam service"
|
||||||
|
sudo supervisorctl start steam
|
||||||
|
fi
|
||||||
|
|
||||||
# WAIT FOR CHILD PROCESS:
|
# WAIT FOR CHILD PROCESS:
|
||||||
wait "$desktop_pid"
|
wait "$desktop_pid"
|
||||||
|
|||||||
Reference in New Issue
Block a user