Fix permissions for expanded templates, allow custom url for osd2web.service
This commit is contained in:
parent
5c385c03fa
commit
2745fa83b3
28
Manual.org
28
Manual.org
@ -2015,35 +2015,57 @@ first_run: False
|
|||||||
template:
|
template:
|
||||||
src: roles/yavdr-xorg/templates/systemd/user/tmux.service.j2
|
src: roles/yavdr-xorg/templates/systemd/user/tmux.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/tmux.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/tmux.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create wm-exit.service for the session
|
- name: create wm-exit.service for the session
|
||||||
template:
|
template:
|
||||||
src: roles/yavdr-xorg/templates/systemd/user/wm-exit.service.j2
|
src: roles/yavdr-xorg/templates/systemd/user/wm-exit.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/wm-exit.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/wm-exit.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create detect-second-display.service for the session
|
- name: create detect-second-display.service for the session
|
||||||
template:
|
template:
|
||||||
src: templates/systemd/user/detect-second-display.service.j2
|
src: templates/systemd/user/detect-second-display.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/detect-second-display.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/detect-second-display.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create openbox-second.service for the session
|
- name: create openbox-second.service for the session
|
||||||
template:
|
template:
|
||||||
src: templates/systemd/user/openbox-second.service.j2
|
src: templates/systemd/user/openbox-second.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/openbox-second.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/openbox-second.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create osd2web.service for the session
|
- name: create osd2web.service for the session
|
||||||
template:
|
template:
|
||||||
src: templates/systemd/user/osd2web.service.j2
|
src: templates/systemd/user/osd2web.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/osd2web.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/osd2web.service'
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
|
||||||
- name: create irexec configuration for the session
|
- name: create irexec configuration for the session
|
||||||
block:
|
block:
|
||||||
- template:
|
- template:
|
||||||
src: templates/systemd/user/irexec.service.j2
|
src: templates/systemd/user/irexec.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/irexec.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/irexec.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
- template:
|
- template:
|
||||||
src: templates/.lircrc.j2
|
src: templates/.lircrc.j2
|
||||||
dest: '{{ vdr.home }}/.lircrc'
|
dest: '{{ vdr.home }}/.lircrc'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: link /usr/bin/start-desktop to /var/lib/vdr/plugins/desktop/starter
|
- name: link /usr/bin/start-desktop to /var/lib/vdr/plugins/desktop/starter
|
||||||
file:
|
file:
|
||||||
@ -2506,9 +2528,11 @@ Wants=detect-second-display.service openbox-second.service
|
|||||||
ConditionFileNotEmpty=%h/.second_display
|
ConditionFileNotEmpty=%h/.second_display
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=%h/.second_display
|
|
||||||
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
||||||
ExecStart=/usr/bin/on_vdr -o -c 'kiosk-browser "http://localhost:4444/skins/horchiTft/index.html?theme=bluecd&onlyView=1"'
|
EnvironmentFile=%h/.second_display
|
||||||
|
Environment=url="http://localhost:4444/skins/horchiTft/index.html?theme=anthraize&onlyView=1"
|
||||||
|
EnvironmentFile=-%h/.config/osd2web/url
|
||||||
|
ExecStart=/usr/bin/on_vdr -o -c 'kiosk-browser "${url}"'
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -66,35 +66,57 @@
|
|||||||
template:
|
template:
|
||||||
src: roles/yavdr-xorg/templates/systemd/user/tmux.service.j2
|
src: roles/yavdr-xorg/templates/systemd/user/tmux.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/tmux.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/tmux.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create wm-exit.service for the session
|
- name: create wm-exit.service for the session
|
||||||
template:
|
template:
|
||||||
src: roles/yavdr-xorg/templates/systemd/user/wm-exit.service.j2
|
src: roles/yavdr-xorg/templates/systemd/user/wm-exit.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/wm-exit.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/wm-exit.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create detect-second-display.service for the session
|
- name: create detect-second-display.service for the session
|
||||||
template:
|
template:
|
||||||
src: templates/systemd/user/detect-second-display.service.j2
|
src: templates/systemd/user/detect-second-display.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/detect-second-display.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/detect-second-display.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create openbox-second.service for the session
|
- name: create openbox-second.service for the session
|
||||||
template:
|
template:
|
||||||
src: templates/systemd/user/openbox-second.service.j2
|
src: templates/systemd/user/openbox-second.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/openbox-second.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/openbox-second.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: create osd2web.service for the session
|
- name: create osd2web.service for the session
|
||||||
template:
|
template:
|
||||||
src: templates/systemd/user/osd2web.service.j2
|
src: templates/systemd/user/osd2web.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/osd2web.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/osd2web.service'
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
|
||||||
- name: create irexec configuration for the session
|
- name: create irexec configuration for the session
|
||||||
block:
|
block:
|
||||||
- template:
|
- template:
|
||||||
src: templates/systemd/user/irexec.service.j2
|
src: templates/systemd/user/irexec.service.j2
|
||||||
dest: '{{ vdr.home }}/.config/systemd/user/irexec.service'
|
dest: '{{ vdr.home }}/.config/systemd/user/irexec.service'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
- template:
|
- template:
|
||||||
src: templates/.lircrc.j2
|
src: templates/.lircrc.j2
|
||||||
dest: '{{ vdr.home }}/.lircrc'
|
dest: '{{ vdr.home }}/.lircrc'
|
||||||
|
mode: 0644
|
||||||
|
owner: '{{ vdr.user }}'
|
||||||
|
group: '{{ vdr.group }}'
|
||||||
|
|
||||||
- name: link /usr/bin/start-desktop to /var/lib/vdr/plugins/desktop/starter
|
- name: link /usr/bin/start-desktop to /var/lib/vdr/plugins/desktop/starter
|
||||||
file:
|
file:
|
||||||
|
@ -5,9 +5,11 @@ Wants=detect-second-display.service openbox-second.service
|
|||||||
ConditionFileNotEmpty=%h/.second_display
|
ConditionFileNotEmpty=%h/.second_display
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=%h/.second_display
|
|
||||||
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
||||||
ExecStart=/usr/bin/on_vdr -o -c 'kiosk-browser "http://localhost:4444/skins/horchiTft/index.html?theme=bluecd&onlyView=1"'
|
EnvironmentFile=%h/.second_display
|
||||||
|
Environment=url="http://localhost:4444/skins/horchiTft/index.html?theme=anthraize&onlyView=1"
|
||||||
|
EnvironmentFile=-%h/.config/osd2web/url
|
||||||
|
ExecStart=/usr/bin/on_vdr -o -c 'kiosk-browser "${url}"'
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user