|
|
|
@ -1,5 +1,6 @@ |
|
|
|
from concurrent.futures import ThreadPoolExecutor |
|
|
|
import os |
|
|
|
import shlex |
|
|
|
import shutil |
|
|
|
import subprocess |
|
|
|
import uuid |
|
|
|
@ -79,7 +80,16 @@ class NotificationManager: |
|
|
|
"--priority", |
|
|
|
"high", |
|
|
|
"--on-delete", |
|
|
|
"echo {} > {}".format(self.id, self.listen_fifo_path), |
|
|
|
"{} {} {}".format( |
|
|
|
*map( |
|
|
|
shlex.quote, |
|
|
|
( |
|
|
|
os.path.join(os.path.dirname(__file__), "echo_if_exists.sh"), |
|
|
|
self.id, |
|
|
|
self.listen_fifo_path, |
|
|
|
), |
|
|
|
) |
|
|
|
), |
|
|
|
] |
|
|
|
|
|
|
|
message = self.message if self.message is not None else "Placeholder" |
|
|
|
|