Skip to content

Guard SDDM theme selection against Qt5 greeter incompatibility - #10663

Open
surim0n wants to merge 1 commit into
omacom:quattrofrom
surim0n:fix/sddm-qt6-guard
Open

Guard SDDM theme selection against Qt5 greeter incompatibility#10663
surim0n wants to merge 1 commit into
omacom:quattrofrom
surim0n:fix/sddm-qt6-guard

Conversation

@surim0n

@surim0n surim0n commented Sep 7, 2026

Copy link
Copy Markdown

Summary

Fresh Omarchy 4.x has no Qt5 packages. SDDM falls back to the Qt5 greeter (/usr/bin/sddm-greeter) for any theme whose metadata.desktop does not declare QtVersion=6. On a 4.x install that leaves the login screen permanently black.

Fixes #10302.

Change

  • Add migrations/1788380505.sh, run by omarchy update / omarchy-migrate.
  • It scans /etc/sddm.conf and /etc/sddm.conf.d/*.conf in SDDM load order to find the active Current= theme.
  • If the theme's metadata.desktop does not declare QtVersion=6 and the Qt5 greeter is missing shared libraries, it resets the active Current= line to omarchy and reports the change.
  • The guard leaves the user's choice alone when the Qt5 greeter is still runnable or the active theme already declares Qt 6.

Test plan

  • bash test/shell.d/sddm-qt6-guard-test.sh passes
  • bash test/shell.d/systemd-test.sh still passes
  • git diff --check clean
  • Real test: on a 4.x install, set Current=maya in /etc/sddm.conf.d/99-theme.conf, run omarchy-migrate, confirm it resets to omarchy.

Generated with Devin

Fresh Omarchy 4.x has no Qt5 packages. SDDM falls back to the Qt5 greeter
(/usr/bin/sddm-greeter) for any theme whose metadata.desktop does not declare
QtVersion=6. On a 4.x install that leaves the login screen permanently black.

Add a migration that, on update, detects when the active SDDM theme is not
Qt6 and the Qt5 greeter cannot run (missing shared libraries), then resets
Current= back to the packaged omarchy theme.

- migrations/1788380505.sh: the guard
- test/shell.d/sddm-qt6-guard-test.sh: coverage for safe, unsafe, runnable-Qt5,
  custom-Qt6, and no-theme cases

Fixes omacom#10302.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

SDDM greeter bricks the login screen when the theme lacks QtVersion=6, because no Qt5 is installed

1 participant