Skip to content

Commit

Permalink
Update windows 'notifu' and 'SnoreToast' to be non-blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
shadoWalker89 committed Sep 28, 2024
1 parent 9c23907 commit a4ed372
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/Driver/NotifuDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Joli\JoliNotif\Notification;
use JoliCode\PhpOsHelper\OsHelper;
use Symfony\Component\Process\Process;

/**
* This driver can be used on Windows Seven and provides its own binaries if
Expand Down Expand Up @@ -71,4 +72,14 @@ protected function getCommandLineArguments(Notification $notification): array

return $arguments;
}

protected function launchProcess(Process $process): void
{
$process->start();
}

protected function handleExitCode(Process $process): bool
{
return true;
}
}
7 changes: 6 additions & 1 deletion src/Driver/SnoreToastDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ protected function getCommandLineArguments(Notification $notification): array
return $arguments;
}

protected function launchProcess(Process $process): void
{
$process->start();
}

protected function handleExitCode(Process $process): bool
{
return 0 < $process->getExitCode();
return true;
}
}

0 comments on commit a4ed372

Please sign in to comment.