We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de351c5 commit 1e1d9ebCopy full SHA for 1e1d9eb
secret_service/secret_service.go
@@ -97,7 +97,13 @@ func (s *SecretService) GetCollection(name string) dbus.BusObject {
97
func (s *SecretService) GetLoginCollection() dbus.BusObject {
98
path := dbus.ObjectPath(collectionBasePath + "login")
99
if err := s.CheckCollectionPath(path); err != nil {
100
- path = dbus.ObjectPath(loginCollectionAlias)
+ var loginAlias dbus.ObjectPath
101
+ err := s.object.Call(serviceInterface+".ReadAlias", 0, "login").Store(&loginAlias)
102
+ if err != nil || loginAlias == "/" {
103
+ path = dbus.ObjectPath(loginCollectionAlias)
104
+ } else {
105
+ path = loginAlias
106
+ }
107
}
108
return s.Object(serviceName, path)
109
0 commit comments