libnick 2025.7.3
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Notifications::ShellNotification Namespace Reference

Functions

void send (const ShellNotificationSentEventArgs &e, const App::AppInfo &info, const std::string &openText="")
 Sends a notification to the desktop.

Function Documentation

◆ send()

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.

Parameters
eShellNotificationSentEventArgs
infoThe application information
openTextLocalized text of "Open"
Returns
True if notification sent
False if notification not sent