Skip to content

Instantly share code, notes, and snippets.

View MightyCoderX's full-sized avatar
Understanding what to do with life...

MightyCoderX MightyCoderX

Understanding what to do with life...
View GitHub Profile
@MightyCoderX
MightyCoderX / start-moonlight.sh
Created November 29, 2025 02:41
Script to start moonlight as non root user from tty
#!/bin/bash
sudo chvt 3
# 1. Point to the physical terminal (so Qt knows where to paint)
export QT_QPA_EGLFS_TTY=/dev/tty2
# 2. Point to the standard user runtime directory (Vital for Audio/Wayland)
export XDG_RUNTIME_DIR=/run/user/$(id -u)