Skip to content

sync: from linuxdeepin/dde-session-shell - #584

Closed
deepin-ci-robot wants to merge 1 commit into
masterfrom
sync-pr-120-nosync
Closed

deepin-ci-robot wants to merge 1 commit into
masterfrom
sync-pr-120-nosync

Conversation

@deepin-ci-robot

@deepin-ci-robot deepin-ci-robot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Synchronize source files from linuxdeepin/dde-session-shell.

Source-pull-request: linuxdeepin/dde-session-shell#120

Summary by Sourcery

Synchronize the greeter and lock screen with remote-session awareness, conflict resolution, and remote login limits.

New Features:

  • Add remote-session detection and display remote-login status for users in the greeter.
  • Add active-session conflict confirmation, forced logout handling, and a two-user remote-login limit.
  • Add localized active-session warning, loading, and remote-login limit interfaces.

Bug Fixes:

  • Prevent inappropriate direct user switching when local and remote sessions conflict.
  • Hide user switching controls on remote lock screens.

Enhancements:

  • Refine authentication and session startup flows to handle remote-session conflicts, no-password users, logout completion, and timeouts.
  • Update session D-Bus metadata handling to use user IDs and session object paths.

Tests:

  • Add coverage for remote login state tracking and invalid session-conflict inputs.

Chores:

  • Synchronize remote-session login and conflict-management changes from dde-session-shell.

Synchronize source files from linuxdeepin/dde-session-shell.

Source-pull-request: linuxdeepin/dde-session-shell#120
@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Sorry @deepin-ci-robot, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 5 days and 13 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Update the D-Bus session record to carry the fields used by logind, and add per-user remote-login state for the UI to observe.

  • src/global_util/dbus/dbusvariant.cpp L1-116 (4 small edits)
  • src/global_util/dbus/dbusvariant.h L1, L59-62, L90 (removed lines)
  • src/session-widgets/authinterface.h L28-31, L76-79 (+2 small edits)
  • src/session-widgets/userinfo.cpp L132-140 (+3 small edits)
  • src/session-widgets/userinfo.h L1-150 (5 small edits)

API

Expose the worker and warning-content signals and slots that connect session-conflict decisions to the confirmation, loading, and limit-message UI.

  • src/lightdm-deepin-greeter/greeterworker.h L50-53, L115-118 (+5 small edits)
  • src/widgets/warningcontent.h L34-43 (+3 small edits)

Implementation

Implement logind-based session conflict and remote-user counting, then use those checks to gate switching, authentication, force logout, and session startup.

  • src/dde-lock/lockworker.cpp L8, L896
  • src/global_util/sessionconflict.cpp L1-166
  • src/global_util/sessionconflict.h L1-19
  • src/lightdm-deepin-greeter/greeterworker.cpp L592-619, L1163-1322, L1330-1355 (+12 small edits)

Track remote graphical sessions from login1 events and update the corresponding users’ remote-login status.

  • src/session-widgets/authinterface.cpp L11-14, L21-52, L92-177

Wire the worker’s conflict-related events to WarningContent and restore the login content when its overlay is dismissed.

  • src/app/lightdm-deepin-greeter.cpp L16-17, L148, L154-163

UI

Add the conflict confirmation and loading widgets, show the appropriate overlay messages, and make the warning window’s dismissal handlers safe when no shutdown warning is present.

  • src/widgets/activesessionwidgets.cpp L1-151
  • src/widgets/activesessionwidgets.h L1-63
  • src/widgets/statebutton.cpp L1-164
  • src/widgets/statebutton.h L1-55
  • src/widgets/warningcontent.cpp L46-51, L429-484 (+3 small edits)

Display a distinct icon for remotely logged-in users and hide user switching on remote lock screens.

  • misc/images/remote_login.svg L1-8
  • src/session-widgets/lockcontent.cpp L31, L37-53, L908-910
  • src/session-widgets/user_widget.cpp L233-242 (+3 small edits)
  • src/session-widgets/user_widget.h L1, L58
  • translations/dde-session-shell.ts L4-26
  • translations/dde-session-shell_bo.ts L2-20
  • translations/dde-session-shell_en.ts L4-22
  • translations/dde-session-shell_ug.ts L2-20
  • translations/dde-session-shell_zh_CN.ts L2-20
  • translations/dde-session-shell_zh_HK.ts L2-20
  • translations/dde-session-shell_zh_TW.ts L2-20

Configuration

Register the new remote-login icon resource and adjust build definitions and ignored paths for the synchronized changes.

  • .gitignore L36-38
  • resources.qrc L11
  • tests/lightdm-deepin-greeter/CMakeLists.txt L50-52

Tests

Add coverage for remote-login user state and basic invalid-input behavior in the session-conflict helpers.

  • tests/at/spi/expected_names.yaml L289-294
  • tests/dde-lock/ut_interface.cpp L1, L8-9, L76-92
  • tests/dde-lock/ut_sessionconflict.cpp L1-25

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

@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: deepin-ci-robot, mhduiy

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

@mhduiy

mhduiy commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

071fc2d 这个合并了

@mhduiy mhduiy closed this Dec 2, 2026
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