bitw icon indicating copy to clipboard operation
bitw copied to clipboard

Support starting the D-Bus service without a password

Open mvdan opened this issue 6 years ago • 1 comments

The password would be requested the first time it's needed. Without this, starting the service when a user logs in would be kinda annoying.

Another option would be for the service to be started as-needed, when the D-Bus service is first used. See for example https://github.com/lemenkov/systemd-user-units/blob/d3329306a9db9b1da12c1436915b74ea6fe75536/user/gnome-keyring.service.

mvdan avatar Jun 23 '19 16:06 mvdan

Even if you add DBus auto-start, if the database is locked, you'll still need to enter some sort of credentials.

Anyway, if you plan to implement this, you should keep these guidelines in mind: https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/75 . The main idea is to avoid using hard-coded files that will conflict with other org.freedesktop.secrets providers. Give your files a provider-specific name (in your case, that means include "bitw" in the file name), and use symlinks where needed (with SystemD, the Alias directive takes care of the symlinking).

michaelk83 avatar May 03 '21 22:05 michaelk83