瀏覽代碼

also set session type for every xsession

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

+ 3
- 1
templates/x11/xsession.j2 查看文件

@@ -1,8 +1,10 @@
#!/bin/sh
#!/usr/bin/fish

{{ansible_managed|comment}}

{% if not home_xsession_vncviewer %}
set -x XDG_SESSION_TYPE x11
systemctl --user import-environment XDG_SESSION_TYPE
exec systemctl --user start --wait xsession.target
{% else %}
systemctl --user start vncserver@:{{home_vncserver_display_number}}.service