Bug 464365

Summary: ksshaskpass can't connect to kwallet
Product: [Frameworks and Libraries] frameworks-kwallet Reporter: Amr K. <akkk33>
Component: generalAssignee: Valentin Rusu <valir>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.102.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Amr K. 2023-01-16 05:17:23 UTC
## SUMMARY

I followed [Arch wiki](https://wiki.archlinux.org/title/KDE_Wallet) method to store ssh private key passphrase in kwallet, but when I try to use ssh, I find it asking the password every time despite it being stored in kwallet, and it shows me this error:
```
$ ssh user@example.com
Warning: fallback to QtQuick software backend.
qt.svg: link #path2410 is undefined!
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
```

STEPS TO REPRODUCE
1. Follow the arch wiki link above.
2. Try to use ssh.
3. See `ksshaskpass` asking you for password, for the first time there a "Save password" checkbox.
4. Open a new terminal, use ssh and notice `ksshaskpass` asking for the private key passphrase again, and outputting the warnings above.

OBSERVED RESULT

ksshaskpass fails to connect to kwallet and outputs this error:
```
$ ssh user@example.com
Warning: fallback to QtQuick software backend.
qt.svg: link #path2410 is undefined!
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwalletrc" "Wallet"
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
Couldn't start kwalletd:  QDBusError("org.freedesktop.DBus.Error.Disconnected", "Not connected to D-Bus server")
```

EXPECTED RESULT
To get the ssh password from kwallet and pass it to the ssh command for me, so I can have passwordless login flow.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
This was working well before, but suddenly it doesn't work anymore!
Comment 1 Amr K. 2023-01-16 22:32:57 UTC
I can't even commit from VScode.
Comment 2 Amr K. 2023-01-23 03:47:40 UTC
Updated to beta and here are the version numbers:

KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Comment 3 Amr K. 2023-02-03 20:05:38 UTC
Just updated my Arch today and the issue was fixed.