在我的脚本中,我向用户发送通知并提示他输入一些数据。之后我想清除之前发送的通知。通知应保留在托盘中,直到用户输入数据。
目前我正在使用notify-send,但只能通过超时才能清除。
我想要的是这样的:
send-notification --title="Hey, enter some data pls" --id=999
prompt-to-enter-data
delete-notification --id=999
Run Code Online (Sandbox Code Playgroud)
我正在使用 linux Mint 20。带有 cinnamon DE (v4.6.6)。
notify-osd未安装。