refactor(core): transition to WPE
This commit is contained in:
+5
-2
@@ -6,10 +6,13 @@ while [ ! -S /tmp/.X11-unix/X0 ]; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo "X11 display found. Starting API server..."
|
||||
echo "X11 display found. Initializing D-Bus and starting API server..."
|
||||
|
||||
# Disable screen blanking for this display as well just in case
|
||||
# Disable screen blanking
|
||||
xset s off -dpms || true
|
||||
|
||||
# Initialize a local D-Bus session. This is required for cogctl to communicate with cog.
|
||||
export DBUS_SESSION_BUS_ADDRESS=$(dbus-daemon --session --print-address --fork)
|
||||
|
||||
# Start the Node.js API server
|
||||
exec node server.js
|
||||
|
||||
Reference in New Issue
Block a user