Unable to use another collection than default one with secret-tool
I have a workflow which consists in storing some passwords in the default keyring and a few, more-sensitive ones in a separated collection.
While this is not documented (neither in the man nor in the --help
of secret-tool), it appears that an option [--collection|-c] <collection-name>
is available: https://gitlab.gnome.org/GNOME/libsecret/blob/master/tool/secret-tool.c#L40 .
However, when using it, it leads to an error:
$ secret-tool store --collection "StrongKeyring" --label='A stronger secret' 'myattr' 'myvalue'
Password:
libsecret-Message: 09:44:49.208: Remote error from secret service: org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.Secret.Collection” on object at path /org/freedesktop/secrets/aliases/StrongKeyring
secret-tool: No such interface “org.freedesktop.Secret.Collection” on object at path /org/freedesktop/secrets/aliases/StrongKeyring
The new collection (StrongKeyring) has been created beforehand with seaborn GUI.
So the first question is: is this an "expected" bug (i.e. the feature does not work and is therefore not documented)?
If it is expected to work, I can look for a patch if someone can give me a few pointers of the possible issues. In addition, this feature seems great, so it deserve a few lines of documentation.