Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

30 lines
749B

  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