Skip to content

Commit

Permalink
[GUI] use 'actiondir' variable to install PolKit policy
Browse files Browse the repository at this point in the history
Related to #360
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Nov 28, 2024
1 parent 74b7bec commit 81cd084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ if(WITH_GTK)
)

# Install policy rule
pkg_get_variable(POLKIT_ACTION_DIR polkit-gobject-1 actiondir)
install(FILES
${CMAKE_DATA_OUTPUT_DIRECTORY}/io.github.thetumultuousunicornofdarkness.cpu-x-daemon.policy
DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/polkit-1/actions/
DESTINATION ${POLKIT_ACTION_DIR}
)

# Install schema file
Expand Down

1 comment on commit 81cd084

@xaizek
Copy link

@xaizek xaizek commented on 81cd084 Jan 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to this change PolKit now must to be installed during the build even if it's not going to be used (read "removed after the build"). Would be great if existence of a package would be checked first, but don't know if CMake allows do to it.

Please sign in to comment.