Skip to content

Conversation

@calsys456
Copy link
Contributor

  • Remove greeter completely
  • Employ a clean new way to interact with authenticate module
  • Remove unused code

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.

Sorry @calsys456, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot
Copy link

Hi @calsys456. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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 performs a major refactoring of the display server logic by removing the Greeter component entirely and introducing a cleaner authentication flow. The changes consolidate display server management into a Treeland-centric architecture with X11 support as needed.

Key Changes:

  • Removed the Greeter abstraction and DisplayServer base class, replacing them with concrete TreelandDisplayServer and refactored XorgDisplayServer implementations
  • Refactored the Auth module to split authentication into distinct phases (authenticate, openSession, startUserProcess) for better control flow
  • Simplified the Display class by removing complex state management and switching logic, now defaulting to Treeland with dynamic X11/Wayland session support

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
src/daemon/XorgUserDisplayServer.h Deleted - user-mode X11 display server removed
src/daemon/XorgUserDisplayServer.cpp Deleted - user-mode X11 display server removed
src/daemon/XorgDisplayServer.h Changed inheritance from DisplayServer to QObject, made display a public member
src/daemon/XorgDisplayServer.cpp Removed testing mode branches, added vt parameter to start(), changed m_display to public display member
src/daemon/WaylandDisplayServer.h Deleted - standalone Wayland display server removed
src/daemon/WaylandDisplayServer.cpp Deleted - standalone Wayland display server removed
src/daemon/UserSession.h Updated start() to accept command, type, and cookie parameters; removed m_auth member
src/daemon/UserSession.cpp Refactored start() to use switch statement for display types, simplified stop() logic, removed greeter-specific handling
src/daemon/TreelandDisplayServer.h Added - new Treeland display server implementation
src/daemon/TreelandDisplayServer.cpp Renamed from SingleWaylandDisplayServer with simplified interface
src/daemon/SingleWaylandDisplayServer.h Deleted - replaced by TreelandDisplayServer
src/daemon/SeatManager.cpp Simplified createDisplay() call to remove serverType parameter
src/daemon/Seat.h Updated createDisplay() signature to remove serverType parameter
src/daemon/Seat.cpp Removed display server type selection logic and fallback handling
src/daemon/Pam.h Changed openSession parameter from pass-by-value to const reference
src/daemon/Pam.cpp Updated openSession signature to const reference
src/daemon/Greeter.h Deleted - greeter component completely removed
src/daemon/Greeter.cpp Deleted - greeter component completely removed
src/daemon/DisplayServer.h Deleted - base class abstraction removed
src/daemon/DisplayServer.cpp Deleted - base class implementation removed
src/daemon/Display.h Major refactor - removed DisplayServer abstraction, made seat and terminalId public members, simplified interface
src/daemon/Display.cpp Complete rewrite - removed greeter logic, simplified authentication flow, added direct Treeland management
src/daemon/CMakeLists.txt Updated to remove deleted files and add TreelandDisplayServer
src/daemon/Auth.h Refactored to split start() into authenticate(), openSession(), and startUserProcess()
src/daemon/Auth.cpp Implemented new three-phase authentication flow
REUSE.toml Updated file list to reflect deletions

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

@calsys456 calsys456 force-pushed the refactor branch 2 times, most recently from 249bef2 to cafbb94 Compare December 22, 2025 03:58
- Remove greeter completely
- Employ a clean new way to interact with authenticate module
- Remove unused code
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: calsys456, zccrs

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

@zccrs zccrs merged commit 08371d6 into linuxdeepin:master Dec 22, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants