RAGS - v1.10.0
    Preparing search index...

    Function notify

    • Sends a desktop notification.

      Uses the built-in notification daemon if it's running, otherwise falls back to libnotify. Requires libnotify as an optional runtime dependency for the fallback path.

      Parameters

      Returns Promise<number>

      The notification ID

      // Simple form
      await notify('Hello', 'World', 'dialog-information');

      // Object form with actions
      await notify({
      summary: 'Download Complete',
      body: 'file.zip has finished downloading',
      actions: { 'Open': () => exec('xdg-open file.zip') },
      });
    • Sends a desktop notification.

      Uses the built-in notification daemon if it's running, otherwise falls back to libnotify. Requires libnotify as an optional runtime dependency for the fallback path.

      Parameters

      • summary: string
      • Optionalbody: string
      • OptionaliconName: string

      Returns Promise<number>

      The notification ID

      // Simple form
      await notify('Hello', 'World', 'dialog-information');

      // Object form with actions
      await notify({
      summary: 'Download Complete',
      body: 'file.zip has finished downloading',
      actions: { 'Open': () => exec('xdg-open file.zip') },
      });