Allow custom browser command

This commit is contained in:
Alexander Grothe 2018-01-27 20:48:27 +01:00
parent 3b4f9d947d
commit 928bbb5b08
3 changed files with 457 additions and 452 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2540,8 +2540,9 @@ ConditionFileNotEmpty=%h/.second_display
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
EnvironmentFile=%h/.second_display EnvironmentFile=%h/.second_display
Environment=url="http://localhost:4444/skins/horchiTft/index.html?theme=anthraize&onlyView=1" Environment=url="http://localhost:4444/skins/horchiTft/index.html?theme=anthraize&onlyView=1"
EnvironmentFile=-%h/.config/osd2web/url Environment=browser="kiosk-browser"
ExecStart=/usr/bin/on_vdr -o -c 'kiosk-browser "${url}"' EnvironmentFile=-%h/.config/osd2web/config
ExecStart=/usr/bin/on_vdr -o -c '${browser} "${url}"'
KillSignal=SIGINT KillSignal=SIGINT
[Install] [Install]
@ -3968,9 +3969,6 @@ dependencies:
state: present state: present
when: '"1209:4444" in usb or "16c0:27d9" in usb' when: '"1209:4444" in usb or "16c0:27d9" in usb'
#+END_SRC #+END_SRC
**** TODO add other device ids if necessary
** kodi ** kodi
*** tasks *** tasks
**** Install KODI **** Install KODI

View File

@ -8,8 +8,9 @@ ConditionFileNotEmpty=%h/.second_display
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
EnvironmentFile=%h/.second_display EnvironmentFile=%h/.second_display
Environment=url="http://localhost:4444/skins/horchiTft/index.html?theme=anthraize&onlyView=1" Environment=url="http://localhost:4444/skins/horchiTft/index.html?theme=anthraize&onlyView=1"
EnvironmentFile=-%h/.config/osd2web/url Environment=browser="kiosk-browser"
ExecStart=/usr/bin/on_vdr -o -c 'kiosk-browser "${url}"' EnvironmentFile=-%h/.config/osd2web/config
ExecStart=/usr/bin/on_vdr -o -c '${browser} "${url}"'
KillSignal=SIGINT KillSignal=SIGINT
[Install] [Install]