Skip to content

Commit

Permalink
chore: launchpad controlled by dde-session
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
Decodetalkers committed Nov 23, 2023
1 parent 630b4cd commit 0749c9c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions systemd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ 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}/dde-session-initialized.target.wants
${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)
7 changes: 7 additions & 0 deletions systemd/org.deepin.dde.Launcher1.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
[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
Expand Down

0 comments on commit 0749c9c

Please sign in to comment.