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

            Bug ID: 518510
           Summary: The KDE Wallet 5 does not work with VS Code
    Classification: Applications
           Product: kwalletmanager
      Version First 25.08.1
       Reported In:
          Platform: RedHat Enterprise Linux
                OS: Linux
            Status: REPORTED
          Keywords: accessibility, efficiency-and-performance, privacy,
                    qt6, usability
          Severity: major
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 191253
  --> https://bugs.kde.org/attachment.cgi?id=191253&action=edit
You're running in a KDE environment but the OS keyring is not available for
encryption. Ensure you have kwallet running.

SUMMARY

KWallet is installed and enabled on KDE Plasma 6, but the wallet service does
not expose or recognize the default wallet correctly. Visual Studio Code
reports that the OS keyring is not available for encryption and advises
ensuring KWallet is running, even though both ksecretd and kwalletd6 are
running and a kdewallet file exists on disk.

STEPS TO REPRODUCE
1. Use Red Hat Enterprise Linux 10.1 with KDE Plasma 6.4.5, KDE Frameworks
6.18.0, and Qt 6.9.1.
2. Install and enable KWallet components, including kf6-kwallet,
kf6-kwallet-libs, pam-kwallet, kwalletmanager5, and signon-kwallet-extension.
3. Enable KWallet in ~/.config/kwalletrc with:
   [Wallet]
   Enabled=true
   First Use=false
   Use One Wallet=true
   [org.freedesktop.secrets]
   apiEnabled=true
4. Ensure the wallet files exist in ~/.local/share/kwalletd, including
kdewallet.kwl and kdewallet.salt.
5. Start a Plasma session and confirm the services are running with:
   pgrep -af 'kwallet|ksecret'
6. Run:
   kwallet-query -l kdewallet
7. Launch Visual Studio Code in the KDE session.

OBSERVED RESULT

The running services are visible:
- /usr/bin/ksecretd
- /usr/bin/kwalletd6

However, kwallet-query returns:
Wallet kdewallet not found

Visual Studio Code then reports:
"You're running in a KDE environment but the OS keyring is not available for
encryption. Ensure you have kwallet running."

So, from the application side, the KDE keyring is treated as unavailable even
though KWallet is installed, enabled, and its service processes are running.

EXPECTED RESULT

The default wallet named kdewallet should be recognized by the KWallet service
and query tools. Applications using the KDE keyring or Secret Service
compatibility layer should be able to access the wallet without reporting that
the OS keyring is unavailable.

SOFTWARE/OS VERSIONS
Windows:
N/A

macOS:
N/A

Linux/KDE Plasma:
Red Hat Enterprise Linux 10.1

KDE Plasma Version:
6.4.5

KDE Frameworks Version:
6.18.0

Qt Version:
6.9.1

ADDITIONAL INFORMATION

Relevant environment details:
- Operating System: Red Hat Enterprise Linux 10.1
- KDE Plasma Version: 6.4.5
- KDE Frameworks Version: 6.18.0
- Qt Version: 6.9.1

Relevant runtime behavior observed:
- pgrep -af 'kwallet|ksecret' shows:
  4384 /usr/bin/ksecretd
  15672 /usr/bin/kwalletd6
- kwallet-query -l kdewallet returns:
  Wallet kdewallet not found

Relevant wallet files on disk:
- ~/.local/share/kwalletd/kdewallet.kwl
- ~/.local/share/kwalletd/kdewallet.salt
- ~/.local/share/kwalletd/kdewallet_attributes.json

Relevant config in ~/.config/kwalletrc:
[Wallet]
Enabled=true
First Use=false
Use One Wallet=true

[org.freedesktop.secrets]
apiEnabled=true

This suggests that the issue is not that KWallet is missing or disabled.
Instead, the issue appears to be that the wallet service or compatibility layer
is not correctly exposing or registering the existing default wallet to
applications and client tools.

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

Reply via email to