Skip to content

Commit 08cab3a

Browse files
authored
dbus: add proper ini-type config file (#22)
1 parent ae7c5be commit 08cab3a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ include(GNUInstallDirs)
5050

5151
set(LIBEXECDIR ${CMAKE_INSTALL_FULL_LIBEXECDIR})
5252
configure_file(assets/hyprpolkitagent-service.in hyprpolkitagent.service @ONLY)
53+
configure_file(assets/hyprpolkitagent-dbus.in hyprpolkitagent-dbus.service @ONLY)
5354

54-
install(TARGETS hyprpolkitagent DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
55+
install(TARGETS hyprpolkitagent
56+
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
5557
install(FILES ${CMAKE_BINARY_DIR}/hyprpolkitagent.service
5658
DESTINATION "lib/systemd/user")
59+
install(FILES ${CMAKE_BINARY_DIR}/hyprpolkitagent-dbus.service
60+
DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services
61+
RENAME hyprpolkitagent.service)

assets/hyprpolkitagent-dbus.in

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[D-BUS Service]
2+
Name=hyprpolkitagent
3+
Exec=@LIBEXECDIR@/hyprpolkitagent
4+
SystemdService=hyprpolkitagent.service

0 commit comments

Comments
 (0)