(summary, body)
| 386 | |
| 387 | |
| 388 | def _notify(summary, body): |
| 389 | if (shutil.which('notify-send') is not None and |
| 390 | os.environ.get("DISPLAY") is not None): |
| 391 | _call(f"notify-send '{summary}' '{body}'", silent=True) |
| 392 | else: |
| 393 | print(f"{summary} - {body}") |
| 394 | |
| 395 | |
| 396 | def _get_machine(): |