From 373f44e6aa539b5de25284dfd9a280312027a22e Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Fri, 28 Jul 2017 15:04:36 +0200 Subject: [PATCH] Add lirc socket as option for kodi so any kodi package can be used --- Manual.org | 2 +- roles/kodi/templates/kodi.service.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Manual.org b/Manual.org index 0353973..893282b 100644 --- a/Manual.org +++ b/Manual.org @@ -3205,7 +3205,7 @@ Description=Start kodi in user session Type=simple PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS ExecStartPre=-/usr/bin/set-kodi-display -ExecStart=/usr/bin/kodi +ExecStart=/usr/bin/kodi -l /run/lirc/lircd ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while /usr/bin/pgrep kodi; do sleep 1; done; sleep 1" TimeoutStopSec=10 SuccessExitStatus=0 127 diff --git a/roles/kodi/templates/kodi.service.j2 b/roles/kodi/templates/kodi.service.j2 index 6549c46..c0630cc 100644 --- a/roles/kodi/templates/kodi.service.j2 +++ b/roles/kodi/templates/kodi.service.j2 @@ -5,7 +5,7 @@ Description=Start kodi in user session Type=simple PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS ExecStartPre=-/usr/bin/set-kodi-display -ExecStart=/usr/bin/kodi +ExecStart=/usr/bin/kodi -l /run/lirc/lircd ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while /usr/bin/pgrep kodi; do sleep 1; done; sleep 1" TimeoutStopSec=10 SuccessExitStatus=0 127