watcher: log xpra runs

master
Mikhail Novosyolov 2 years ago
parent 172e2777cb
commit 6e5ff0b8c3
  1. 6
      doskast-server-watcher.sh
  2. 1
      doskast-trigger-connect.cgi

@ -17,7 +17,11 @@ _main_server_watcher(){
local target
target="$(head -n 1 "$dir/$line" | _safe_param_stdin)"
test -n "$target"
xpra attach tcp://"$target":4648 &
# log how xpra is run into ~/.xsession-errors*
( set -x ; xpra attach tcp://"$target":4648 ) &
# XXX TODO: this fails for now, fix permissions and try to avoid 777
# or maybe clean up old files by systemd-tmpfiles
#unlink "$dir/$line"
done
}

@ -7,7 +7,6 @@ set -f
set -u
_main_trigger_connect(){
local umask_old
local tmp
tmp="$(umask 0022 && mktemp --tmpdir="$dir" connect.XXXXX)"
test -f "$tmp"

Loading…
Cancel
Save