Ver Fonte

démarrage auto de Steam

penta há 1 mês atrás
pai
commit
2bac83251f
1 ficheiros alterados com 8 adições e 0 exclusões
  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}"