Commit a94226bb authored by David Edmundson's avatar David Edmundson
Browse files

Add systemd unit for BalooRunner

parent 8f7a12d7
......@@ -15,10 +15,6 @@ target_link_libraries(baloorunner
Qt5::DBus
)
configure_file(org.kde.baloorunner.service.in
${CMAKE_CURRENT_BINARY_DIR}/org.kde.baloorunner.service)
install(
TARGETS baloorunner
DESTINATION ${KDE_INSTALL_LIBEXECDIR}
......@@ -29,5 +25,10 @@ install(
DESTINATION "${KDE_INSTALL_DATAROOTDIR}/krunner/dbusplugins"
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.baloorunner.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR})
ecm_generate_dbus_service_file(NAME org.kde.runners.baloo
EXECUTABLE ${KDE_INSTALL_FULL_LIBEXECDIR}/baloorunner
SYSTEMD_SERVICE plasma-baloorunner.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR})
ecm_install_configured_files(INPUT plasma-baloorunner.service.in @ONLY DESTINATION
${SYSTEMD_USER_UNIT_INSTALL_DIR})
[D-BUS Service]
Name=org.kde.runners.baloo
Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/baloorunner
PartOf=graphical-session.target
[Unit]
Description=KRunner provider for baloo file indexer
PartOf=graphical-session.target
[Service]
ExecStart=@CMAKE_INSTALL_FULL_LIBEXECDIR@/baloorunner
Type=dbus
BusName=org.kde.runners.baloo
TimeoutSec=5sec
Slice=background.slice
Restart=no #as we're dbus activated anyway
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment