Преглед на файлове

démarrage auto de Steam

penta преди 1 месец
родител
ревизия
2bac83251f
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      desktop-entrypoint.sh

+ 8 - 0
desktop-entrypoint.sh

@@ -169,5 +169,13 @@ echo "[desktop] Starting XFCE..."
 xfce4-session &
 XFCE_PID=$!
 
+
+if ! pgrep -x steam >/dev/null 2>&1; then
+	sleep 10
+    
+    echo "[desktop] Starting Steam in background..."
+    steam -silent >/home/ubuntu/.steam-startup.log 2>&1 &
+fi
+
 # Keep the Supervisor program alive for the lifetime of the desktop session.
 wait "${XFCE_PID}"