Bug 465815 - KMail assumes KDEWallet as Secret Service provider, breaking other alternatives
Summary: KMail assumes KDEWallet as Secret Service provider, breaking other alternatives
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.24.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-16 05:13 UTC by Odin Vex
Modified: 2024-05-24 15:01 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Odin Vex 2023-02-16 05:13:38 UTC
SUMMARY
KMail is assuming that KDEWallet is the Secret Service that can exist and attempts to detect it by forcibly detecting *only* KDE Wallet, instead of simply asking on the dbus if a Secret Service provider exists (such as KeePassXC). SMTP can be fetched from KeePassXC, but *not* IMAP credentials.


STEPS TO REPRODUCE
1. Disable KDEWallet.
2. Use any other Secret Service provider (such as KeePassXC).
3. Attempt to '&Modify...' a Receiving entry for an IMAP account.

OBSERVED RESULT
Error Message: Could not access KWallet. If you want to store the password permanently then you have to activate it. If you do not want to use KWallet, check the box below, but note that you will be prompted for your password when needed.

EXPECTED RESULT
KMail should accept alternative Secret Service providers.

SOFTWARE/OS VERSIONS
Linux: Manjaro 22
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
SMTP is remembered correctly, but not anything relating to IMAP. POP3 may be affected, unchecked.
Comment 1 Bernardo Marx 2023-06-18 08:52:34 UTC
+1
Comment 2 steppecat 2023-06-23 10:20:15 UTC
+1
Comment 3 lod 2023-11-27 20:45:33 UTC
Same problem in the latest Version.
Comment 4 Witko 2024-01-05 08:54:53 UTC
This really breaks the usability of Kmail. As KDEWallet does not work with browsers its not a viable option for most users. Apart from that using the security service should be the right approach.
I believe it happens here: https://github.com/KDE/kdepim-runtime/blob/master/resources/imap/settings.cpp
Thank you!