Skip to content

Commit bbd83c9

Browse files
Add tmpfiles for initializing /etc/openrgb for systemd service
1 parent b22438d commit bbd83c9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

OpenRGB.pro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,9 @@ contains(QMAKE_PLATFORM, linux) {
590590
metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml
591591
systemd_service.path=$$PREFIX/lib/systemd/system/
592592
systemd_service.files+=qt/openrgb.service
593-
INSTALLS += target desktop icon metainfo udev_rules systemd_service
593+
tmpfiles.path=$$PREFIX/lib/tmpfiles.d/
594+
tmpfiles.files+=qt/openrgb.tmpfiles
595+
INSTALLS += target desktop icon metainfo udev_rules systemd_service tmpfiles
594596
}
595597

596598
#-----------------------------------------------------------------------------------------------#

fedora/OpenRGB.spec.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ fi
4444
%{_metainfodir}/org.%{name}.%{_name}.metainfo.xml
4545
%{_udevrulesdir}/60-%{name}.rules
4646
%{_unitdir}/openrgb.service
47+
%{_tmpfilesdir}/openrgb.tmpfiles
4748
%license LICENSE
4849
%doc README.md
4950

qt/openrgb.tmpfiles

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d /etc/openrgb 0755 root root - -

0 commit comments

Comments
 (0)