Skip to content

Commit

Permalink
docs(notifications): Update documentation and error
Browse files Browse the repository at this point in the history
  • Loading branch information
pdf committed Mar 9, 2024
1 parent d90d65e commit e649b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ Some modules (where noted) support embedding in the systray.
> [!NOTE]
> The hyprpanel SNI implementation does not play well with others: hyprpanel does not support registering additional StatusNotifierHosts, and will fail to start if it can't own the bus. So if you use this module hyprpanel *must* be the only SNI implementation on your desktop.
>
> To disable systray support, set the config option `dbus.systray.enabled` to `false`, and remove the `systray` module from all panels.
>
> If you need xembed support, you can try `xembedsniproxy` from the KDE project, though expect some artifical delays as that project expects to communicate directly with the KDE SNI implementation.
### Audio
Expand Down Expand Up @@ -146,6 +148,11 @@ The session module provides a basic session management screen.

Displays system notifications.

> [!NOTE]
> The hyprpanel notifications implementation does not play well with others, and will fail to start if it can't own the bus. So if you use this module hyprpanel *must* be the only notifications implementation on your desktop.
>
> To disable notifications support, set the config option `dbus.notifications.enabled` to `false`, and remove the `notifications` module from all panels.
#### Actions

On notifications:
Expand Down
2 changes: 1 addition & 1 deletion internal/dbus/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (n *notifications) init() error {
return err
}
if reply != dbus.RequestNameReplyPrimaryOwner && reply != dbus.RequestNameReplyAlreadyOwner {
return fmt.Errorf("DBUS Notifications already claimed, disable systray or close the other claiming application: code %d", reply)
return fmt.Errorf("DBUS Notifications already claimed, disable notifications or close the other claiming application: code %d", reply)
}

if err := n.conn.Export(n, notificationsPath, notificationsName); err != nil {
Expand Down

0 comments on commit e649b4f

Please sign in to comment.