From ce7cb50831ff79836cd17b29307ccd51621814d8 Mon Sep 17 00:00:00 2001 From: PM Kuipers Date: Mon, 23 Jan 2023 19:18:28 +0100 Subject: [PATCH] Added blueglow in startup script --- configure.ac | 2 +- lib/systemd/system/mediacore-hid.service | 2 ++ lib/systemd/system/mediacore-hid.service.in | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8f95db4..f913b06 100755 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([MediaCore HID Server], [4.1.6], [bugs@miqra.nl], [mediacore-hid], [http://www.miqra.nl/]) +AC_INIT([MediaCore HID Server], [4.1.7], [bugs@miqra.nl], [mediacore-hid], [http://www.miqra.nl/]) AC_PREREQ([2.59]) AM_INIT_AUTOMAKE([1.11 no-define foreign subdir-objects]) AC_CONFIG_HEADERS([config.hpp]) diff --git a/lib/systemd/system/mediacore-hid.service b/lib/systemd/system/mediacore-hid.service index c44fa12..7ad610a 100644 --- a/lib/systemd/system/mediacore-hid.service +++ b/lib/systemd/system/mediacore-hid.service @@ -7,6 +7,8 @@ After=dbus.service Type=dbus ExecStart=/usr/sbin/mediacore-hid-server BusName=nl.miqra.MediaCore.Hid +# After startup, signal the hid unit to start glowing blue +ExecStartPost=dbus-send --system --dest=nl.miqra.MediaCore.Hid --type=method_call /nl/miqra/MediaCore/Hid nl.miqra.MediaCore.Hid.SetColor byte:0 byte:0 byte:128 [Install] WantedBy=multi-user.target diff --git a/lib/systemd/system/mediacore-hid.service.in b/lib/systemd/system/mediacore-hid.service.in index 71e57cb..426e412 100644 --- a/lib/systemd/system/mediacore-hid.service.in +++ b/lib/systemd/system/mediacore-hid.service.in @@ -7,6 +7,8 @@ After=dbus.service Type=dbus ExecStart=@SBIN_DIR@/mediacore-hid-server BusName=nl.miqra.MediaCore.Hid +# After startup, signal the hid unit to start glowing blue +ExecStartPost=dbus-send --system --dest=nl.miqra.MediaCore.Hid --type=method_call /nl/miqra/MediaCore/Hid nl.miqra.MediaCore.Hid.SetColor byte:0 byte:0 byte:128 [Install] WantedBy=multi-user.target