From e86d9f924176ec2657706b27faabab0812585b23 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 15 Jul 2025 11:20:13 -0500 Subject: [PATCH] Add SystemD service file to Linux installation --- OpenRGB.pro | 4 +++- qt/openrgb.service | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 qt/openrgb.service diff --git a/OpenRGB.pro b/OpenRGB.pro index 5974d232..9a49651d 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -577,7 +577,9 @@ contains(QMAKE_PLATFORM, linux) { icon.files+=qt/org.openrgb.OpenRGB.png metainfo.path=$$PREFIX/share/metainfo/ metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml - INSTALLS += target desktop icon metainfo udev_rules + systemd_service.path=/etc/systemd/system + systemd_service.files+=qt/openrgb.service + INSTALLS += target desktop icon metainfo udev_rules systemd_service } #-----------------------------------------------------------------------------------------------# diff --git a/qt/openrgb.service b/qt/openrgb.service new file mode 100644 index 00000000..368d10fa --- /dev/null +++ b/qt/openrgb.service @@ -0,0 +1,12 @@ +[Unit] +Description=OpenRGB SDK Server +After=network.target lm_sensors.service + +[Service] +RemainAfterExit=yes +ExecStart=/usr/bin/openrgb --server +Restart=always + +[Install] +WantedBy=multi-user.target +