瀏覽代碼

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}"