Bug 284986 - deskutils/plasma6-sddm-kcm: SDDM themes are no longer effective
Summary: deskutils/plasma6-sddm-kcm: SDDM themes are no longer effective
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-kde (group)
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-02-23 10:04 UTC by Graham Perrin
Modified: 2025-03-09 09:15 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2025-02-23 10:04:31 UTC
<https://www.freshports.org/deskutils/plasma6-sddm-kcm/>

Steps: 

1. System Settings

2. Login Screen (SDDM)

3. select a theme – Maldives, for example

4. Apply

5. authenticate

6. log out

7. log in

Expected: 

8. the theme

Actual result: 

8. not themed.
Comment 1 Graham Perrin 2025-02-23 10:05:19 UTC
First noted following an upgrade from x11/kde5 to x11/kde on FreeBSD 15.0-CURRENT. 

Reproducible on 14.2-RELEASE-p2.
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2025-02-23 14:19:35 UTC
(In reply to Graham Perrin from comment #0)
Same here - can't change default scheme of the sddm.
Comment 3 Robert Bell 2025-02-27 16:09:00 UTC
Seeing this in /var/log/sddm.log:

(WW) DAEMON: The theme at "/usr/local/share/sddm/themes/My-SDDM" requires missing "/usr/local/bin/sddm-greeter" . Using fallback theme.

Checked /usr/local/bin/ and indeed there is no sddm-greeter, but there is sddm-greeter-qt6. Out of curiousity, I also tried to run:

$ sddm-greeter-qt6 --test-mode --theme /usr/local/share/sddm/themes/My-SDDM

There were errors directly on the login screen:

The current theme cannot be loaded due to the errors below, please select another theme.
file:///usr/local/share/sddm/themes/My-SDDM/Main.qml:28:1:module "QtGraphicalEffects" is not installed

I'm guessing the last is on me/my theme. I don't actually have Plasma installed on this machine.
Comment 4 Robert Bell 2025-02-28 13:34:25 UTC
My apologies, I have jumped the gun in trying to be helpful here. In my case this was basically all theme related issues.

To fix the sddm-greeter/sddm-greeter-qt6 issue it was just a matter of adding a "QtVersion=6" line to the metadata.desktop file.

Everything else was just going through all my QML files (Main.qml and all the QML files in Components) and changing "import QtGraphicalEffects 1.0" to "import Qt5Compat.GraphicalEffects".

I did try to change themes using "kcmshell6 kcm_sddm" and theme would not change. But it is possible that the other 4 themes I have installed are not Qt6 compatible.
Comment 5 commit-hook freebsd_committer freebsd_triage 2025-02-28 23:06:39 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2edc80a54d25dcf01d32a9789dbb638bcb0e5b2c

commit 2edc80a54d25dcf01d32a9789dbb638bcb0e5b2c
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2025-02-28 22:52:32 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2025-02-28 23:05:12 +0000

    deskutils/plasma6-sddm-kcm: fix path to sddm configuration

    PR:     284984
    PR:     284986

 deskutils/plasma6-sddm-kcm/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
Comment 6 Graham Perrin 2025-03-09 09:15:47 UTC
Fix confirmed, thanks. 

----

With the fix: it's clearer that, for me, the Defaults button in Login Screen (SDDM) is unreliable, however I'll not make a separate report. For now, let's assume an overlap with bug 285157 comment 0, part of which is for the Defaults button in Splash Screen.