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

            Bug ID: 508870
           Summary: XDG Secrets portal does not trigger kwallet unlock
    Classification: Frameworks and Libraries
           Product: frameworks-kwallet
      Version First unspecified
       Reported In:
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 184534
  --> https://bugs.kde.org/attachment.cgi?id=184534&action=edit
Reproduction tool to dump secrets from the XDG portal

SUMMARY
Configuring a Kubuntu installaton to automatically log a user in shows a
warning message that the user will be prompted to unlock every time they are
logged in. However, no such login prompt is shown. Attempting to access the KDE
wallet via the XDG secrets portal does not trigger the KDE wallet unlock
dialog, and reading the secret fails.  

STEPS TO REPRODUCE
1. Install Kubuntu 25.04
2. Enable the `Automatically log in` setting under the `Login Screen (SDDM)`
settings.
3. Reboot the system and you should be logged into the desktop.
4. Compile the attached reproduction tool.
5. Run `dumpsecret`

OBSERVED RESULT
Reading the secret over the XDG secrets portal fails with an result code of 2:
> Got Secret: ""
> XDG response: 2

EXPECTED RESULT
A non-empty secret is returned and the result code is zero. For example, after
unlocking the KDE wallet the program returns:
> Got Secret: 
> "4392dfa2d9a495c848a9b8edfde0882471a0c6734d035c42fa95ce5e801ddcf34e9272f266f8628e90a4967d0541660b0fef9cd2e17f892b489d3c0d975b165a"
> XDG response: 0

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/a
Linux/KDE Plasma: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
This was discovered in the Mozilla VPN project:
https://github.com/mozilla-mobile/mozilla-vpn-client/issues/10728

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

Reply via email to