Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fallback for get login.keyring path #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KT-lcz
Copy link

@KT-lcz KT-lcz commented Aug 23, 2024

we can get login.keyring dbus path by call ReadAlias

var loginAlias dbus.ObjectPath
err := s.object.Call(serviceInterface+".ReadAlias", 0, "login").Store(&loginAlias)
if err != nil || loginAlias == "/" {
path = dbus.ObjectPath(loginCollectionAlias)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the PR is about adding a fallback I would assume that the current behavior stays the same and the new thing is the fallback. Here we have it the other way around.

Maybe it's good, I don't know the details and give the impact for >1000 projects that use this library, I would like to have a reason why we change the order.

@szuecs
Copy link
Member

szuecs commented Aug 23, 2024

please sign-off your commit such that DCO check is green

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants