Skip to content

Conversation

@yixinshark
Copy link
Contributor

@yixinshark yixinshark commented Jul 14, 2025

Changed the symlink target in CMakeLists.txt from dde-session-initialized.target to dde-session-core.target. Updated the service file to reflect the new dependencies, replacing references to dde-session-initialized.target with dde-session-core.target. This ensures proper service management and initialization order.

Log: as title

Summary by Sourcery

Update systemd service dependencies for ApplicationManager1 to depend on dde-session-core.target instead of dde-session-initialized.target.

Bug Fixes:

  • Replace references to dde-session-initialized.target with dde-session-core.target in the systemd service file

Build:

  • Adjust CMakeLists install_symlink target from dde-session-initialized.target.wants to dde-session-core.target.wants

Changed the symlink target in CMakeLists.txt from dde-session-initialized.target to dde-session-core.target. Updated the service file to reflect the new dependencies, replacing references to dde-session-initialized.target with dde-session-core.target. This ensures proper service management and initialization order.

Log: as title
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yixinshark

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sourcery-ai
Copy link

sourcery-ai bot commented Jul 14, 2025

Reviewer's Guide

The pull request adjusts the systemd target dependency for ApplicationManager1 by changing references from dde-session-initialized.target to dde-session-core.target in both the CMake installation step and the service unit template, ensuring proper initialization order.

File-Level Changes

Change Details Files
Update symlink target in CMakeLists.txt to dde-session-core.target
  • Replaced install_symlink destination from dde-session-initialized.target.wants to dde-session-core.target.wants
misc/CMakeLists.txt
Modify service unit dependencies in org.desktopspec.ApplicationManager1.service.in
  • Replaced occurrences of dde-session-initialized.target with dde-session-core.target in After and Wants directives
misc/systemd/user/org.desktopspec.ApplicationManager1.service.in

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @yixinshark - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@deepin-ci-robot
Copy link

deepin pr auto review

代码审查意见:

  1. 文件路径和符号链接目标

    • CMakeLists.txt文件中,将符号链接的目标从dde-session-initialized.target.wants更改为dde-session-core.target.wants。需要确认dde-session-core.target是否是正确的目标,并且该目标在系统中存在。如果dde-session-core.target不存在,可能会导致符号链接创建失败。
  2. 服务依赖关系

    • org.desktopspec.ApplicationManager1.service.in文件中,将RequisitePartOfBefore的依赖关系从dde-session-initialized.target更改为dde-session-core.target。需要确保这一更改不会影响服务的启动顺序和依赖关系。如果dde-session-core.target不是预期的目标,可能会导致服务启动失败或意外行为。
  3. 注释

    • CMakeLists.txt文件中,注释掉的代码行(# dbus activate)应该被删除,以保持代码的整洁和可读性。
  4. 配置文件

    • configure_file调用中,确保模板文件org.desktopspec.ApplicationManager1.service.in中的变量和配置项正确无误,并且与实际的服务配置相匹配。
  5. 错误处理

    • 在创建符号链接或配置文件时,应该添加错误处理逻辑,以处理可能出现的文件系统错误或权限问题。
  6. 文档和注释

    • 考虑为CMakeLists.txtorg.desktopspec.ApplicationManager1.service.in文件添加更详细的注释,说明更改的原因和影响,以便其他开发者理解这些更改的目的和上下文。

综上所述,建议在实施这些更改之前,进行充分的测试,确保它们不会对系统的其他部分产生负面影响。同时,应该更新相关的文档和注释,以便其他开发者能够理解这些更改的意图和影响。

@deepin-bot
Copy link

deepin-bot bot commented Jul 31, 2025

TAG Bot

New tag: 1.2.34
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #287

@deepin-bot
Copy link

deepin-bot bot commented Sep 4, 2025

TAG Bot

New tag: 1.2.35
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #290

@deepin-bot
Copy link

deepin-bot bot commented Oct 10, 2025

TAG Bot

New tag: 1.2.36
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #292

@deepin-bot
Copy link

deepin-bot bot commented Nov 27, 2025

TAG Bot

New tag: 1.2.38
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #303

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the systemd service dependencies for ApplicationManager1 from dde-session-initialized.target to dde-session-core.target, reflecting a change in the session initialization architecture. The changes ensure that the ApplicationManager service integrates with the new session target structure.

Key Changes:

  • Updated systemd service file to use dde-session-core.target instead of dde-session-initialized.target
  • Removed the Requisite dependency directive while keeping PartOf and Before directives
  • Updated CMakeLists.txt symlink installation to place the service in the correct target's wants directory

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
misc/systemd/user/org.desktopspec.ApplicationManager1.service.in Updated service dependencies to reference dde-session-core.target; removed Requisite directive
misc/CMakeLists.txt Updated symlink target from dde-session-initialized.target.wants to dde-session-core.target.wants

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


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

Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

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

The removal of the Requisite directive may cause issues with service startup dependencies. The original configuration had Requisite=dde-session-initialized.target, which ensured the service would fail immediately if the target was not active. The new configuration only has PartOf and Before directives for dde-session-core.target, but no Requisite directive.

If dde-session-core.target needs to be active before this service starts (similar to the previous requirement), consider adding Requisite=dde-session-core.target to maintain the strict dependency semantics. Otherwise, if this change is intentional and the service should be able to start regardless of whether dde-session-core.target is active, this should be documented in the commit message to clarify the behavior change.

Suggested change
Requisite=dde-session-core.target

Copilot uses AI. Check for mistakes.
@deepin-bot
Copy link

deepin-bot bot commented Dec 11, 2025

TAG Bot

New tag: 1.2.39
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #307

@deepin-bot
Copy link

deepin-bot bot commented Dec 18, 2025

TAG Bot

New tag: 1.2.40
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #310

@deepin-bot
Copy link

deepin-bot bot commented Dec 19, 2025

TAG Bot

New tag: 1.2.41
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants