您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

desktop-apps.yaml 749B

1234567891011121314151617181920212223242526272829
  1. ---
  2. - name: desktop app service
  3. template:
  4. src: desktop-apps/desktop-app.service.j2
  5. dest: ~/.config/systemd/user/desktop-app@.service
  6. mode: 0755
  7. notify: systemd daemon-reload
  8. - name: enable autostart desktop apps
  9. systemd:
  10. name: desktop-app@{{ app.command }}.service
  11. enabled: true
  12. scope: user
  13. loop: "{{ home_autostart_desktop_apps | json_query(\"[?enabled]\") }}"
  14. loop_control:
  15. label: "{{ app.name }}"
  16. loop_var: app
  17. - name: disable autostart desktop apps
  18. systemd:
  19. name: desktop-app@{{ app.command }}.service
  20. enabled: false
  21. scope: user
  22. loop: "{{ home_autostart_desktop_apps | json_query(\"[?!enabled]\") }}"
  23. loop_control:
  24. label: "{{ app.name }}"
  25. loop_var: app
  26. failed_when: false