瀏覽代碼

set xdg session type earlier

pull/1/head
父節點
當前提交
9a86cb769c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      templates/vnc/vncserver.service.j2

+ 1
- 1
templates/vnc/vncserver.service.j2 查看文件

@@ -26,9 +26,9 @@ ExecStart=Xtigervnc $DISPLAY {{vncserver_options|replace('\n',' ')|trim}}
ExecStartPost=fish -c "while not xdpyinfo > /dev/null 2> /dev/null; sleep 0.1; end"
ExecStartPost=xrandr --output VNC-0 --primary
ExecStartPost=systemctl --user import-environment DISPLAY XAUTHORITY
ExecStartPost=fish -c "set -x XDG_SESSION_TYPE x11; systemctl --user import-environment XDG_SESSION_TYPE"
ExecStartPost=systemctl --user restart dbus.service
ExecStartPost=systemctl --user start xsession.target
ExecStartPost=fish -c "set -x XDG_SESSION_TYPE x11; systemctl --user import-environment XDG_SESSION_TYPE"

[Install]
WantedBy=default.target