Bug 458776 - Changing the default wallet does not update Secret Service `default` alias (unless `kwalletd5` is restarted).
Summary: Changing the default wallet does not update Secret Service `default` alias (u...
Status: REPORTED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (show other bugs)
Version: 22.08.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-06 06:57 UTC by michaelk83
Modified: 2022-09-17 15:36 UTC (History)
0 users

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 michaelk83 2022-09-06 06:57:00 UTC
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