Skip to content

Commit

Permalink
dbus: add proper ini-type config file (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
regul4rj0hn authored Jan 3, 2025
1 parent ae7c5be commit 08cab3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 4 additions & 0 deletions assets/hyprpolkitagent-dbus.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[D-BUS Service]
Name=hyprpolkitagent
Exec=@LIBEXECDIR@/hyprpolkitagent
SystemdService=hyprpolkitagent.service

0 comments on commit 08cab3a

Please sign in to comment.