浏览代码

fix barrier ssh client connection

pull/1/head
父节点
当前提交
a22a5dcb7b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      templates/barrier/barrier-ssh-connection@.service.j2

+ 2
- 1
templates/barrier/barrier-ssh-connection@.service.j2 查看文件

@@ -7,7 +7,8 @@ PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=sh -c "sleep infinity | ssh $@" ssh -R 24800:localhost:24800 %i\
systemctl --user --wait restart barrier-unlock-lockscreen.service;\
fish -c "\"not test -p .barrier-unlock-lockscreen.fifo && mkfifo .barrier-unlock-lockscreen.fifo; test -p .barrier-unlock-lockscreen.fifo\"";\
systemctl --user restart barrier-unlock-lockscreen.service;\
exec cat > .barrier-unlock-lockscreen.fifo

[Install]