| Summary: | Changing the default wallet does not update Secret Service `default` alias (unless `kwalletd5` is restarted). | ||
|---|---|---|---|
| Product: | [Applications] kwalletmanager | Reporter: | michaelk83 <mk.mateng> |
| Component: | general | Assignee: | Valentin Rusu <valir> |
| Status: | REPORTED --- | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 22.08.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| See Also: |
https://bugs.kde.org/show_bug.cgi?id=458774 https://bugs.kde.org/show_bug.cgi?id=459287 |
||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
SUMMARY When the default wallet is changed in settings, the Secret Service `default` alias is not updated until `kwalletd5` is restarted. STEPS TO REPRODUCE 1. Set up KWallet with Secret Service integration enabled, and at least two wallets. 2. Run `qdbus org.freedesktop.secrets`. Make sure `/org/freedesktop/secrets/aliases/default` is listed. - If it's not listed, restart `kwalletd5` and KWalletManager (Bug 458774). If that doesn't help, select a default wallet in the settings and restart them again. 3. Run `qdbus org.freedesktop.secrets /org/freedesktop/secrets/aliases/default org.freedesktop.Secret.Collection.Label`, note which name is returned. 4. In KWalletManager -> Settings -> Configure Wallet, select a different wallet to use as default, and click Apply. 5. Run `qdbus org.freedesktop.secrets /org/freedesktop/secrets/aliases/default org.freedesktop.Secret.Collection.Label` again. OBSERVED RESULT Step 5 returns the same name as step 3. The `default` alias is not updated. EXPECTED RESULT The `default` alias should be updated. Step 5 should return the updated selection. SOFTWARE/OS VERSIONS KDE Frameworks Version: 5.97.0 KWalletManager: 22.08.0 ADDITIONAL INFORMATION The `default` alias is updated after restarting `kwalletd5` (and KWalletManager?). Either the settings module needs to make a `org.freedesktop.Secret.Service.SetAlias` call when the default wallet is changed, of `kwalletd5` needs to listen for configuration changes and update Secret Service as needed. https://specifications.freedesktop.org/secret-service/latest/re01.html