added support for usernames through ip or fingerprint, and also control based on it and restarting sessions

This commit is contained in:
2026-06-06 00:37:03 +01:00
parent 0f98ae862f
commit 4e4bd6a145
3 changed files with 450 additions and 132 deletions
+13 -4
View File
@@ -3,7 +3,10 @@
rm -f /tmp/.X99-lock
rm -f /tmp/.X11-unix/X99
#no wine crash dialog in case of nosteam crashing.
# Clean up stale PulseAudio sockets from previous run
rm -rf /tmp/pulse-*
rm -f /run/user/$(id -u)/pulse/native
wine reg add "HKCU\\Software\\Wine\\WineDbg" /v ShowCrashDialog /t REG_DWORD /d 0 /f
Xvfb :99 -screen 0 800x600x24 &
@@ -13,13 +16,19 @@ matchbox-window-manager -use_titlebar no &
sleep 1
pulseaudio --start --exit-idle-time=-1
sleep 1
# virtual microphone
# Wait for PulseAudio to be ready with retries
for i in $(seq 1 10); do
pactl info > /dev/null 2>&1 && break
echo "Waiting for PulseAudio... attempt $i"
sleep 1
done
# Virtual microphone
pactl load-module module-null-sink sink_name=mic_sink
pactl load-module module-virtual-source source_name=virtual_mic master=mic_sink.monitor
pactl set-default-source virtual_mic
sleep 1
wine ~/Counter-Strike\ Source/revLoader.exe &
sleep 5
python3 ~/streaming-agent/gst_agent.py