Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
add systemd user service file
Browse files Browse the repository at this point in the history
  • Loading branch information
eszlari authored and derat committed Jan 8, 2021
1 parent bf90acc commit db54639
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ target_link_libraries(dump_xsettings PRIVATE libxsettingsd X11::X11)
install(TARGETS xsettingsd dump_xsettings DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES xsettingsd.1 dump_xsettings.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)

configure_file(xsettingsd.service.in xsettingsd.service)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/xsettingsd.service DESTINATION lib/systemd/user)

if(GTEST_FOUND AND BUILD_TESTING)
include(GoogleTest)

Expand Down
7 changes: 7 additions & 0 deletions xsettingsd.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Unit]
Description=XSETTINGS-protocol daemon
PartOf=graphical-session.target

[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/xsettingsd
Slice=session.slice

0 comments on commit db54639

Please sign in to comment.