소스 검색

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