2017-06-21 10:14:35 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Start a kiosk browser on the second DISPLAY if it exists
|
|
|
|
After=detect-second-display.service openbox-second.service
|
|
|
|
Wants=detect-second-display.service openbox-second.service
|
|
|
|
ConditionFileNotEmpty=%h/.second_display
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
PassEnvironment=XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
2018-01-21 09:33:52 +01:00
|
|
|
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}"'
|
2017-07-31 12:11:28 +02:00
|
|
|
KillSignal=SIGINT
|
2017-06-21 10:14:35 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=yavdr-desktop.target
|