From 269e7c6115c2f7017aab6b22811445e229184588 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 10 Nov 2025 00:35:39 -0600 Subject: [PATCH] Add tmpfiles for initializing /etc/openrgb for systemd service --- OpenRGB.pro | 4 +++- fedora/OpenRGB.spec.in | 1 + qt/openrgb.conf | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 qt/openrgb.conf diff --git a/OpenRGB.pro b/OpenRGB.pro index e2228751..4a4fd8a3 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -590,7 +590,9 @@ contains(QMAKE_PLATFORM, linux) { metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml systemd_service.path=$$PREFIX/lib/systemd/system/ systemd_service.files+=qt/openrgb.service - INSTALLS += target desktop icon metainfo udev_rules systemd_service + tmpfiles.path=$$PREFIX/lib/tmpfiles.d/ + tmpfiles.files+=qt/openrgb.conf + INSTALLS += target desktop icon metainfo udev_rules systemd_service tmpfiles } #-----------------------------------------------------------------------------------------------# diff --git a/fedora/OpenRGB.spec.in b/fedora/OpenRGB.spec.in index 83dff382..64a98f9a 100644 --- a/fedora/OpenRGB.spec.in +++ b/fedora/OpenRGB.spec.in @@ -44,6 +44,7 @@ fi %{_metainfodir}/org.%{name}.%{_name}.metainfo.xml %{_udevrulesdir}/60-%{name}.rules %{_unitdir}/openrgb.service +%{_tmpfilesdir}/openrgb.conf %license LICENSE %doc README.md diff --git a/qt/openrgb.conf b/qt/openrgb.conf new file mode 100644 index 00000000..3fd93702 --- /dev/null +++ b/qt/openrgb.conf @@ -0,0 +1 @@ +d /etc/openrgb 0755 root root - -