Skip to content

Commit

Permalink
expire notification after five seconds in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
catdevnull committed Mar 23, 2023
1 parent 2e5376c commit c237c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func showNotification(message string) {
appleScript := `display notification "%s" with title "yubikey-agent"`
exec.Command("osascript", "-e", fmt.Sprintf(appleScript, message)).Run()
case "linux":
exec.Command("notify-send", "-i", "dialog-password", "yubikey-agent", message).Run()
exec.Command("notify-send", "-i", "dialog-password", "--expire-time=5000", "yubikey-agent", message).Run()
}
}

Expand Down

0 comments on commit c237c4b

Please sign in to comment.