How to register a well known name
8zhiniao opened this issue · 1 comments
8zhiniao commented
I understand that there should have a well known name, then have some object name and interface name, now I test well known name is same as the interface name , then how can i register a separate service name.
8zhiniao commented
reply, err := conn.RequestName("com.github.guelfey.Demo",
dbus.NameFlagDoNotQueue)
if err != nil {
panic(err)
}
if reply != dbus.RequestNameReplyPrimaryOwner {
fmt.Fprintln(os.Stderr, "name already taken")
os.Exit(1)
}