summaryrefslogtreecommitdiff
path: root/src/daemon.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-01-10 16:30:59 +0100
committerFlorent Le Coz <louiz@louiz.org>2012-01-26 10:05:35 +0100
commit83abd9f19666eea8edfcd30f80fbd08388bc8816 (patch)
tree8f577c41a90ab3649e209b2b7ce66af34ba34d59 /src/daemon.py
parent13430de1f4843527e07ae9edc75e114a064836e7 (diff)
downloadpoezio-83abd9f19666eea8edfcd30f80fbd08388bc8816.tar.gz
poezio-83abd9f19666eea8edfcd30f80fbd08388bc8816.tar.bz2
poezio-83abd9f19666eea8edfcd30f80fbd08388bc8816.tar.xz
poezio-83abd9f19666eea8edfcd30f80fbd08388bc8816.zip
Add a simple_notify plugin
And also fix some issues, like the split of the exec_command arguments. And the doc for the plugin, too.
Diffstat (limited to 'src/daemon.py')
-rwxr-xr-xsrc/daemon.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon.py b/src/daemon.py
index b413f465..4b4c0b79 100755
--- a/src/daemon.py
+++ b/src/daemon.py
@@ -22,7 +22,7 @@ command on your local machine.
import sys
import threading
import subprocess
-
+import shlex
import logging
log = logging.getLogger(__name__)
@@ -40,7 +40,8 @@ class Executor(threading.Thread):
def run(self):
log.info('executing %s' % (self.command.strip(),))
- subprocess.call(self.command.split())
+ command = shlex.split(self.command)
+ subprocess.call(command)
def main():
while True: