瀏覽代碼

fix lockscreen-auto

main
父節點
當前提交
fe6867743d
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. +4
    -5
      templates/lockscreen/xss-lock.service.j2
  2. +1
    -0
      templates/x11/xsession.j2

+ 4
- 5
templates/lockscreen/xss-lock.service.j2 查看文件

@@ -1,15 +1,14 @@
{{ ansible_managed | comment }}

[Unit]
Description=xss-lock - use external locker as X screen saver
Documentation=man:xss-lock(1)
PartOf=graphical-session.target
Wants=xset.service
After=xset.service

[Service]
Type=simple
EnvironmentFile=/home/anarcat/.xsecurelock.env
# note that when this works, document in #994762
ExecStart=/usr/bin/xss-lock --verbose --transfer-sleep-lock --session=${XDG_SESSION_ID} --notifier /usr/libexec/xsecurelock/dimmer -- xsecurelock
Restart=always
ExecStart=/usr/bin/xss-lock --verbose --transfer-sleep-lock --session=${XDG_SESSION_ID} -- systemctl --user start lockscreen.service

[Install]
WantedBy=graphical-session.target

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

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