dbus: add proper ini-type config file (#22)

This commit is contained in:
Mauro Lavigna 2025-01-03 20:25:14 -03:00 committed by GitHub
parent ae7c5be24c
commit 08cab3a4d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -50,7 +50,12 @@ include(GNUInstallDirs)
set(LIBEXECDIR ${CMAKE_INSTALL_FULL_LIBEXECDIR})
configure_file(assets/hyprpolkitagent-service.in hyprpolkitagent.service @ONLY)
configure_file(assets/hyprpolkitagent-dbus.in hyprpolkitagent-dbus.service @ONLY)
install(TARGETS hyprpolkitagent DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
install(TARGETS hyprpolkitagent
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR})
install(FILES ${CMAKE_BINARY_DIR}/hyprpolkitagent.service
DESTINATION "lib/systemd/user")
install(FILES ${CMAKE_BINARY_DIR}/hyprpolkitagent-dbus.service
DESTINATION ${CMAKE_INSTALL_DATADIR}/dbus-1/services
RENAME hyprpolkitagent.service)

View file

@ -0,0 +1,4 @@
[D-BUS Service]
Name=hyprpolkitagent
Exec=@LIBEXECDIR@/hyprpolkitagent
SystemdService=hyprpolkitagent.service