https://bugs.kde.org/show_bug.cgi?id=526857

            Bug ID: 526857
           Summary: SDDM Breeze theme: "Other…" (username prompt) screen
                    has no avatar/label — "Required property realName was
                    not initialized"
    Classification: Plasma
           Product: plasmashell
      Version First 6.6.6
       Reported In:
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Theme - Breeze
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

SUMMARY

On the SDDM Breeze theme, the screen opened with "Other…" (type in username and
password) shows no user avatar and no "Type in Username and Password" label.
The greeter logs:

    qrc:/qt/qml/org/kde/breeze/components/UserList.qml:57:15: QML Component:
Cannot create delegate
    qrc:/qt/qml/org/kde/breeze/components/UserList.qml:61:9: Required property
realName was not initialized

STEPS TO REPRODUCE

1. `sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/breeze`
2. Click "Other…".

OBSERVED RESULT

The username prompt has no avatar and no label above the fields; the message
above is printed.

EXPECTED RESULT

The generic avatar (`faces/.face.icon`) and the "Type in Username and Password"
label are shown, as before Plasma 6.

ANALYSIS

The delegate in `org.kde.breeze.components/UserList.qml` declares

    required property int index
    required property string icon
    required property string realName
    required property var model

but the model of `userPromptComponent` in the SDDM theme's `Main.qml` only
defines `name` and `icon`:

    userListModel: ListModel {
        ListElement {
            name: ""
            icon: ""
        }
        ...
    }

so the delegate cannot be created. Adding the missing role fixes it (`UserList`
already falls back to `model.name` when `realName` is empty):

    ListElement {
        name: ""
        realName: ""
        icon: ""
    }

Verified on a copy of the theme in `sddm-greeter-qt6 --test-mode`: with
`realName: ""` the warning is gone and the avatar and label are shown. Not
verified in a real login session.

SOFTWARE/OS VERSIONS

Ubuntu 26.04.1 LTS (Kubuntu) · plasma-workspace 6.6.6 · SDDM 0.21.0 · Qt 6.10.2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to