Skip to content

Commit

Permalink
Make DBus notifications transient
Browse files Browse the repository at this point in the history
Fixes gopasspw#2358

RELEASE_NOTES=[ENHANCEMENT] Make DBus notifications transient

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
  • Loading branch information
dominikschulz committed Sep 28, 2022
1 parent 555d512 commit 69cb826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/notify/notify_dbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Notify(ctx context.Context, subj, msg string) error {
}

obj := conn.Object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")
call := obj.Call("org.freedesktop.Notifications.Notify", 0, "gopass", uint32(0), iconURI(), subj, msg, []string{}, map[string]dbus.Variant{}, int32(5000))
call := obj.Call("org.freedesktop.Notifications.Notify", 0, "gopass", uint32(0), iconURI(), subj, msg, []string{}, map[string]dbus.Variant{"transient": dbus.MakeVariant(true)}, int32(3000))
if call.Err != nil {
debug.Log("DBus notification failure: %s", call.Err)

Expand Down

0 comments on commit 69cb826

Please sign in to comment.