libnick 2025.7.3
A cross-platform base for native Nickvision applications.
|
Functions | |
void | send (const ShellNotificationSentEventArgs &e, const App::AppInfo &info, const std::string &openText="") |
Sends a notification to the desktop. |
void Nickvision::Notifications::ShellNotification::send | ( | const ShellNotificationSentEventArgs & | e, |
const App::AppInfo & | info, | ||
const std::string & | openText = "" ) |
Sends a notification to the desktop.
On Windows, uses toast notifications.
On GTK, uses Gio.Notification.
On non-GTK, uses FreeDesktop notification spec on Linux or osascript on Apple.
Supports the action "open" with action param being a path of a file or folder to open.
On GTK, the app must define an "app.open" action to handle this event.
e | ShellNotificationSentEventArgs |
info | The application information |
openText | Localized text of "Open" |