This adds a command-line utility kbroadcastnotification that emits a signal on the system DBus listened to by Plasma's notifications dataengine, cf. [1]
Details
Details
- Reviewers
mart - Group Reviewers
Plasma - Commits
- R126:455e0209e6a7: Add utility to send broadcast notifications
kbroadcastnotification --summary "Backup failed" --persistent --icon dialog-error --uids 1000,1337 "Please contact system administration for assistance."
Diff Detail
Diff Detail
- Repository
- R126 KDE CLI Utilities
- Lint
Lint Skipped - Unit
Unit Tests Skipped
kbroadcastnotification/main.cpp | ||
---|---|---|
79 | I wonder if it can take usernames instead of uids? It is slightly easier to remember usernames then uids |
Comment Actions
I wonder if it can take usernames instead of uids?
Perhaps not "instead" but in addition. The tool is mostly meant to be used by background services and scripts, so remembering should not be an issue but we can offer both. Will make a patch for the notifications dataengine.