Система трансляции экранов компьютеров учеников на доску
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
doskast/xpra-shadow/doskast-xpra-shadow.sh

15 lines
321 B

#!/bin/bash
id="$(id -u)"
if systemctl --user -q is-active xpra-shadow-"$id".scope; then
echo "Stopping already running XPRA shadow server"
systemctl stop xpra-shadow-"$id".scope
fi
xpra \
--bind=/tmp/xpra-shadow.socket \
--systemd-run=yes \
--systemd-run-args="--unit=xpra-shadow-${id}" \
--daemon=no \
shadow