summaryrefslogtreecommitdiff
path: root/src/daemon.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-07-03 01:59:25 +0200
committerFlorent Le Coz <louiz@louiz.org>2012-07-03 01:59:25 +0200
commit4bc215806b62f687faec9f5176d717f071cc6c9f (patch)
tree38310b270e4ec1792562948560878962f678e456 /src/daemon.py
parent737c6aae437530a0bd09852a01aabc583cc721bc (diff)
downloadpoezio-4bc215806b62f687faec9f5176d717f071cc6c9f.tar.gz
poezio-4bc215806b62f687faec9f5176d717f071cc6c9f.tar.bz2
poezio-4bc215806b62f687faec9f5176d717f071cc6c9f.tar.xz
poezio-4bc215806b62f687faec9f5176d717f071cc6c9f.zip
Improve the simple_notify plugin and the daemon to execute a command to clean the notification and to execute the remote commands through sh -c, letting us use pipes and redirections. Also adds the highlight event for plugin, and make the simple_notify plugin use it as well.
Diffstat (limited to 'src/daemon.py')
-rwxr-xr-xsrc/daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.py b/src/daemon.py
index 4b4c0b79..bd6dbd85 100755
--- a/src/daemon.py
+++ b/src/daemon.py
@@ -40,7 +40,7 @@ class Executor(threading.Thread):
def run(self):
log.info('executing %s' % (self.command.strip(),))
- command = shlex.split(self.command)
+ command = shlex.split('sh -c "%s"' % self.command)
subprocess.call(command)
def main():