You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# check-env.sh: Diagnostic script for MTGO headless environment
3
+
4
+
echo"=== System Information ==="
5
+
uname -a
6
+
id
7
+
echo"DISPLAY=$DISPLAY"
8
+
9
+
echo""
10
+
echo"=== X Server Status ==="
11
+
if pgrep Xvfb > /dev/null;then
12
+
echo"[PASS] Xvfb is running."
13
+
ps aux | grep Xvfb | grep -v grep
14
+
else
15
+
echo"[FAIL] Xvfb is NOT running."
16
+
fi
17
+
18
+
if [ -S /tmp/.X11-unix/X${DISPLAY#:} ];then
19
+
echo"[PASS] X11 socket found at /tmp/.X11-unix/X${DISPLAY#:}"
20
+
else
21
+
echo"[FAIL] X11 socket NOT found for display $DISPLAY"
22
+
fi
23
+
24
+
ifcommand -v xdpyinfo > /dev/null;then
25
+
if xdpyinfo -display "$DISPLAY"> /dev/null 2>&1;then
26
+
echo"[PASS] xdpyinfo successfully connected to display $DISPLAY"
27
+
else
28
+
echo"[FAIL] xdpyinfo FAILED to connect to display $DISPLAY"
29
+
fi
30
+
else
31
+
echo"[SKIP] xdpyinfo not installed."
32
+
fi
33
+
34
+
echo""
35
+
echo"=== Wine Status ==="
36
+
wine --version
37
+
echo"WINEPREFIX=$WINEPREFIX"
38
+
if [ -d"$WINEPREFIX" ];then
39
+
echo"[PASS] Wine prefix directory exists."
40
+
else
41
+
echo"[FAIL] Wine prefix directory NOT found."
42
+
fi
43
+
44
+
echo""
45
+
echo"=== MTGO Installation Status ==="
46
+
MTGO_EXE=$(find "$WINEPREFIX/drive_c/users/wine/AppData/Local/Apps/2.0" -name "MTGO.exe"2>/dev/null | head -n 1)
47
+
if [ -n"$MTGO_EXE" ];then
48
+
echo"[PASS] MTGO.exe found at: $MTGO_EXE"
49
+
else
50
+
echo"[INFO] MTGO.exe NOT found in Wine prefix (expected if tests haven't run)."
51
+
fi
52
+
53
+
APPREF_PATH="/home/wine/.wine/drive_c/users/wine/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Daybreak Game Company LLC/Magic The Gathering Online .appref-ms"
54
+
if [ -f"$APPREF_PATH" ];then
55
+
echo"[PASS] MTGO .appref-ms found."
56
+
else
57
+
echo"[INFO] MTGO .appref-ms NOT found (expected if tests haven't run)."
58
+
fi
59
+
60
+
echo""
61
+
echo"=== Network Status ==="
62
+
ip addr show | grep 'inet '
63
+
# Check if we can reach Daybreak's patch server
64
+
if curl -sI http://mtgo.patch.daybreakgames.com/patch/mtg/live/client/MTGO.application > /dev/null;then
65
+
echo"[PASS] Daybreak patch server is reachable."
66
+
else
67
+
echo"[FAIL] Daybreak patch server is NOT reachable."
0 commit comments