Skip to content

Commit

Permalink
fix(dbus): Allow replacement when requesting name ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
pdf committed Mar 10, 2024
1 parent df4a24f commit 4719f7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/dbus/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (n *notifications) GetServerInformation() (name, vendor, version, specVersi
}

func (n *notifications) init() error {
reply, err := n.conn.RequestName(notificationsName, dbus.NameFlagDoNotQueue)
reply, err := n.conn.RequestName(notificationsName, dbus.NameFlagDoNotQueue|dbus.NameFlagReplaceExisting|dbus.NameFlagAllowReplacement)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/dbus/snw.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func (s *statusNotifierWatcher) init() error {
return err
}

reply, err := s.conn.RequestName(snwName, dbus.NameFlagDoNotQueue)
reply, err := s.conn.RequestName(snwName, dbus.NameFlagDoNotQueue|dbus.NameFlagReplaceExisting|dbus.NameFlagAllowReplacement)
if err != nil {
return err
}
Expand Down

0 comments on commit 4719f7b

Please sign in to comment.