mvdan / bitw

Minimalist BitWarden client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support starting the D-Bus service without a password

mvdan opened this issue · 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.

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).