refactor(*): move to x11
This commit is contained in:
+7
-4
@@ -1,12 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Wait for Wayland socket to be available
|
||||
echo "Waiting for Wayland display $WAYLAND_DISPLAY..."
|
||||
while [ ! -e "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]; do
|
||||
# Wait for X11 socket to be available
|
||||
echo "Waiting for X11 display $DISPLAY..."
|
||||
while [ ! -S /tmp/.X11-unix/X0 ]; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo "Wayland display found. Starting API server..."
|
||||
echo "X11 display found. Starting API server..."
|
||||
|
||||
# Disable screen blanking for this display as well just in case
|
||||
xset s off -dpms || true
|
||||
|
||||
# Start the Node.js API server
|
||||
exec node server.js
|
||||
|
||||
Reference in New Issue
Block a user