How to set Default Action #1360
-
I am experimenting with programmatic notifications with GO, not with I set up my test notifications with two actions: Cancel & Open. My program is capable of receiving the Action request from the server. When the notifications appear on the screen, I see they have the My question is, How do I specify which of the two actions is the default action? I have read a lot of documentation, browsed code (shouldn't be a need for that as user) and I don't see where it indicates how to to that. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The action name should be 'default'. Note that the action name and label can be different. For example using dunstify dunstify --action="default,Reply" --action="forwardAction,Forward" "Message Received" 'Hello' |
Beta Was this translation helpful? Give feedback.
-
Great explanation, thanks! |
Beta Was this translation helpful? Give feedback.
The action name should be 'default'. Note that the action name and label can be different. For example using dunstify
dunstify --action="default,Reply" --action="forwardAction,Forward" "Message Received" 'Hello'