Skip to content

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

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

deepin-ci-robot wants to merge 1 commit into
masterfrom
sync-pr-119-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#119

Summary by Sourcery

Implement remote-session conflict handling and user-limit enforcement across greeter authentication, session switching, and lock-screen user management.

New Features:

  • Add remote-session awareness to user status and login flows, including remote login indicators and a two-user remote login limit.
  • Add active-session conflict prompts that allow users to cancel or force logout an existing session before continuing login.

Bug Fixes:

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

Enhancements:

  • Track graphical remote sessions through logind and update user state as sessions appear or disappear.
  • Add warning, loading, and confirmation UI for session conflicts and remote login limits.
  • Update session D-Bus metadata to represent user IDs and session object paths.

Tests:

  • Add coverage for remote login state updates, copying user state, and invalid session-conflict inputs.

Chores:

  • Synchronize resources, assets, and translations for the new remote-session login experience.

@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 6 days by commenting @sourcery-ai review. Upgrade to get a review now.

@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

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

sourcery-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Update the login1 session D-Bus representation and add per-user remote-login state so consumers can identify remote graphical sessions.

  • 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

Introduce shared helpers and a remote-user limit constant for determining session conflicts and counting active remote users.

  • src/global_util/sessionconflict.h L1-19

Uses of the API

Connect login1 session lifecycle events to remote-session queries and update the matching user’s remote-login state.

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

Apply conflict and remote-user-limit checks to greeter authentication, user switching, forced logout, and session startup.

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

Implementation

Implement login1 queries to classify the current session, detect graphical local-versus-remote conflicts, and count remote LightDM users.

  • src/global_util/sessionconflict.cpp L1-166

UI

Add remote-session indicators to user rows 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)

Show confirmation, loading, and remote-user-limit overlays for active-session handling.

  • src/app/lightdm-deepin-greeter.cpp L16-17, L148, L154-163
  • src/widgets/activesessionwidgets.cpp L1-150
  • 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)
  • src/widgets/warningcontent.h L34-43 (+3 small edits)

Configuration

Register the new remote-login image resource and update the greeter test target’s compile definitions.

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

Documentation

Add translation entries for the active-session prompts and remote-user-limit message.

  • translations/dde-session-shell.ts L4-26
  • translations/dde-session-shell_af.ts L2-20
  • translations/dde-session-shell_ak.ts L2-20
  • translations/dde-session-shell_am_ET.ts L2-20
  • translations/dde-session-shell_ar.ts L2-20
  • translations/dde-session-shell_ast.ts L2-20
  • translations/dde-session-shell_az.ts L2-20
  • translations/dde-session-shell_bg.ts L2-20
  • translations/dde-session-shell_bn.ts L2-20
  • translations/dde-session-shell_bo.ts L2-20
  • translations/dde-session-shell_br.ts L2-20
  • translations/dde-session-shell_ca.ts L2-20
  • translations/dde-session-shell_cs.ts L2-20
  • translations/dde-session-shell_da.ts L2-20
  • translations/dde-session-shell_de.ts L2-20
  • translations/dde-session-shell_el.ts L2-20
  • translations/dde-session-shell_el_GR.ts L2-20
  • translations/dde-session-shell_en.ts L4-22
  • translations/dde-session-shell_en_AU.ts L2-20
  • translations/dde-session-shell_en_GB.ts L2-20
  • translations/dde-session-shell_en_US.ts L2-20
  • translations/dde-session-shell_eo.ts L2-20
  • translations/dde-session-shell_es.ts L2-20
  • translations/dde-session-shell_et.ts L2-20
  • translations/dde-session-shell_fa.ts L2-20
  • translations/dde-session-shell_fi.ts L2-20
  • translations/dde-session-shell_fr.ts L2-20
  • translations/dde-session-shell_gl_ES.ts L2-20
  • translations/dde-session-shell_he.ts L2-20
  • translations/dde-session-shell_hi_IN.ts L2-20
  • translations/dde-session-shell_hr.ts L2-20
  • translations/dde-session-shell_hu.ts L2-20
  • translations/dde-session-shell_hy.ts L2-20
  • translations/dde-session-shell_id.ts L2-20
  • translations/dde-session-shell_it.ts L2-20
  • translations/dde-session-shell_ja.ts L2-20
  • translations/dde-session-shell_ka.ts L2-20
  • translations/dde-session-shell_kab.ts L2-20
  • translations/dde-session-shell_kk.ts L2-20
  • translations/dde-session-shell_km_KH.ts L2-20
  • translations/dde-session-shell_ko.ts L2-20
  • translations/dde-session-shell_ku.ts L2-20
  • translations/dde-session-shell_ku_IQ.ts L2-20
  • translations/dde-session-shell_ky.ts L2-20
  • translations/dde-session-shell_ky@Arab.ts L2-20
  • translations/dde-session-shell_lo.ts L2-20
  • translations/dde-session-shell_lt.ts L2-20
  • translations/dde-session-shell_lv.ts L2-20
  • translations/dde-session-shell_ml.ts L2-20
  • translations/dde-session-shell_mn.ts L2-20
  • translations/dde-session-shell_ms.ts L2-20
  • translations/dde-session-shell_nb.ts L2-20
  • translations/dde-session-shell_ne.ts L2-20
  • translations/dde-session-shell_nl.ts L2-20
  • translations/dde-session-shell_pa.ts L2-20
  • translations/dde-session-shell_pam.ts L2-20
  • translations/dde-session-shell_pl.ts L2-20
  • translations/dde-session-shell_pt.ts L2-20
  • translations/dde-session-shell_pt_BR.ts L2-20
  • translations/dde-session-shell_ro.ts L2-20
  • translations/dde-session-shell_ru.ts L2-20
  • translations/dde-session-shell_si.ts L2-20
  • translations/dde-session-shell_sk.ts L2-20
  • translations/dde-session-shell_sl.ts L2-20
  • translations/dde-session-shell_sq.ts L2-20
  • translations/dde-session-shell_sr.ts L2-20
  • translations/dde-session-shell_sv.ts L2-20
  • translations/dde-session-shell_sw.ts L2-20
  • translations/dde-session-shell_ta.ts L2-20
  • translations/dde-session-shell_th.ts L2-20
  • translations/dde-session-shell_tr.ts L2-20
  • translations/dde-session-shell_tzm.ts L2-20
  • translations/dde-session-shell_ug.ts L2-20
  • translations/dde-session-shell_uk.ts L2-20
  • translations/dde-session-shell_ur.ts L2-20
  • translations/dde-session-shell_uz.ts L2-20
  • translations/dde-session-shell_vi.ts L2-20
  • translations/dde-session-shell_zh_CN.ts L2-20

Remove stale Chinese translation entries as part of the synchronized translation update.

  • translations/dde-session-shell_zh_CN.ts L250 (removed lines), L290 (removed lines), L517

Tests

Add tests for remote-login state changes and invalid session-conflict inputs.

  • tests/dde-lock/ut_interface.cpp L1, L8-9, L76-92
  • tests/dde-lock/ut_sessionconflict.cpp L1-25

Other changes

Files not grouped.

  • src/lightdm-deepin-greeter/greeterworker.h L50-53, L115-118 (+5 small edits)
  • src/session-widgets/user_widget.h L1, L58
  • translations/dde-session-shell_zh_HK.ts L2-20
  • translations/dde-session-shell_zh_TW.ts L2-20

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
deepin-ci-robot force-pushed the sync-pr-119-nosync branch 26 times, most recently from 80cd655 to 7f46fac Compare November 24, 2026 07:41
@deepin-ci-robot
deepin-ci-robot force-pushed the sync-pr-119-nosync branch 29 times, most recently from 14729f9 to 366bc50 Compare November 24, 2026 07:58
Synchronize source files from linuxdeepin/dde-session-shell.

Source-pull-request: linuxdeepin/dde-session-shell#119
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.

1 participant