Skip to content

Commit

Permalink
add -contentImage option to TerminalNotifier
Browse files Browse the repository at this point in the history
Related to jolicode#73

Since appIcon is no longer supported, there is this alternative to including an image using -contentImage and this PR adds the ability to set the appImage as an option.
  • Loading branch information
vesper8 committed Mar 7, 2024
1 parent 6a886aa commit b541c61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Notifier/TerminalNotifierNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ protected function getCommandLineArguments(Notification $notification): array
$arguments[] = $notification->getIcon();
}

if ($notification->getOption('contentImage')) {
$arguments[] = '-contentImage';
$arguments[] = $notification->getOption('contentImage');
}

if ($notification->getOption('url')) {
$arguments[] = '-open';
$arguments[] = $notification->getOption('url');
Expand Down

0 comments on commit b541c61

Please sign in to comment.