Skip to content

fix(session): set desktop identity before Xsession [2500u3] - #251

Merged
mhduiy merged 1 commit into
develop/2500u3from
backport/2500u3/portal-desktop-250
Nov 23, 2026
Merged

mhduiy merged 1 commit into
develop/2500u3from
backport/2500u3/portal-desktop-250

Conversation

@mhduiy

@mhduiy mhduiy commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

变更

将原 PR #250 的修复 cherry-pick 到 develop/2500u3,使 X11 会话在门户首次激活前同步 XDG_CURRENT_DESKTOP=DDE。

PMS: BUG-382063
Ref: #250

验证

  • 比对原提交与 cherry-pick 的 patch-id,一致。
  • Xsession 脚本语法及隔离执行通过:DDE 空值兜底、保留 DDE 值、保留非 DDE 会话标识。
  • 同一修复在测试机上已验证早启动门户取得 DDE,并通过 DDE 后端实际选择目录;U3 未做整机验证。

Summary by Sourcery

Bug Fixes:

  • Ensure the DDE desktop identity is available before the X11 session starts so early-activated portals use the correct desktop environment.

1. Declare DesktopNames=DDE so LightDM sets the desktop identity before Xsession.
2. Prevent stale values from the systemd user environment from overriding it.
3. Default to DDE when launching dde-session without a desktop identity.

Log: Set the DDE desktop identity before Xsession syncs the activation environment.
Influence: Early portals can use the DDE FileChooser.

fix(session): 在 Xsession 前设置桌面标识

1. 声明 DesktopNames=DDE,让 LightDM 在进入 Xsession 前设置桌面标识。
2. 防止 systemd 用户环境中的旧值覆盖当前桌面标识。
3. 启动 dde-session 时若桌面标识为空,则补为 DDE。

Log: 在 Xsession 同步激活环境前设置 DDE 桌面标识。
PMS: BUG-382063
Influence: 提前启动的门户可使用 DDE 文件选择器。
(cherry picked from commit 72fd401)
@sourcery-ai

sourcery-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Set the DDE desktop identity in the session entry and ensure Xsession uses it before syncing the activation environment.

  • misc/Xsession.d/00deepin-dde-env L8, L64-66
  • misc/xsessions/deepin.desktop.in L6-7

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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mhduiy, robertkill

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 merged commit f2d8a54 into develop/2500u3 Nov 23, 2026
30 of 31 checks passed
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.

3 participants