Skip to content

Commit

Permalink
chore: update systemd service
Browse files Browse the repository at this point in the history
move service to session.slice

Log:
  • Loading branch information
justforlxz committed Jan 18, 2024
1 parent 943a3ee commit db845bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 0 additions & 10 deletions systemd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,3 @@ configure_file(

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.deepin.dde.Launcher1.service
DESTINATION ${SYSTEMD_USER_UNIT_DIR})

file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dde-session-initialized.target.wants)

file(CREATE_LINK
${SYSTEMD_USER_UNIT_DIR}/org.deepin.dde.Launcher1.service
${CMAKE_CURRENT_BINARY_DIR}/dde-session-initialized.target.wants/org.deepin.dde.Launcher1.service
SYMBOLIC)

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dde-session-initialized.target.wants/org.deepin.dde.Launcher1.service
DESTINATION ${SYSTEMD_USER_UNIT_DIR}/dde-session-initialized.target.wants)
8 changes: 1 addition & 7 deletions systemd/org.deepin.dde.Launcher1.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@
[Unit]
Description=DDE launchpad background service

Requisite=dde-session-pre.target
After=dde-session-pre.target

Requisite=dde-session-initialized.target
PartOf=dde-session-initialized.target
Before=dde-session-initialized.target

[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-launchpad
Type=dbus
BusName=org.deepin.dde.Launcher1
Slice=session.slice

0 comments on commit db845bf

Please sign in to comment.