Skip to content

fix(sddm): auto-detect Plasma session for autologin#123

Merged
RadxaYuntian merged 1 commit into
radxa-pkg:mainfrom
vamrs-feng:fix-sddm-autologin-session
Jul 1, 2026
Merged

fix(sddm): auto-detect Plasma session for autologin#123
RadxaYuntian merged 1 commit into
radxa-pkg:mainfrom
vamrs-feng:fix-sddm-autologin-session

Conversation

@vamrs-feng

Copy link
Copy Markdown
Contributor

The SDDM autologin configuration hardcoded 'Session=plasma', but on Debian 13 with KDE Plasma 6, the Wayland session (plasma.desktop) may be disabled and only plasmax11.desktop remains. This caused autologin to silently fail because SDDM could not find the referenced session.

Add __get_plasma_session() to detect the available Plasma session:

  • Prefer 'plasma' if plasma.desktop exists (backward compatible)
  • Fall back to 'plasmax11' when only the X11 session is available
  • Update both set_sddm_autologin() and get_autologin_status() to use the dynamically detected session name

The SDDM autologin configuration hardcoded 'Session=plasma', but on
Debian 13 with KDE Plasma 6, the Wayland session (plasma.desktop) may
be disabled and only plasmax11.desktop remains. This caused autologin
to silently fail because SDDM could not find the referenced session.

Add __get_plasma_session() to detect the available Plasma session:
- Prefer 'plasma' if plasma.desktop exists (backward compatible)
- Fall back to 'plasmax11' when only the X11 session is available
- Update both set_sddm_autologin() and get_autologin_status() to use
  the dynamically detected session name

Signed-off-by: Feng Zhang <feng@radxa.com>
@vamrs-feng vamrs-feng requested a review from RadxaYuntian as a code owner June 23, 2026 05:42
@github-actions

Copy link
Copy Markdown
Contributor

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

@RadxaYuntian RadxaYuntian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

我们目前都是gdm搭配plasma的吧,没有用sddm了

@vamrs-feng

vamrs-feng commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

我们目前都是gdm搭配plasma的吧,没有用sddm了

目前Allwinner debian13 就是sddm,这样改也兼容之前的,另外就是之前的名字是 plasma.desktop,现在是plasmax11.desktop

@vamrs-feng vamrs-feng requested a review from RadxaYuntian June 23, 2026 06:43
@RadxaYuntian RadxaYuntian added this pull request to the merge queue Jul 1, 2026
Merged via the queue into radxa-pkg:main with commit 571c4ae Jul 1, 2026
3 of 4 checks passed
@vamrs-feng vamrs-feng deleted the fix-sddm-autologin-session branch July 1, 2026 07:04
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