[Xfce4-commits] <postler:master> Parse command to execute properly into vector
Christian Dywan
noreply at xfce.org
Tue Dec 14 20:52:01 CET 2010
Updating branch refs/heads/master
to 47e8654ebd23107dde001a9e13c3a6fc985085f2 (commit)
from 3c7e0c2e4e031c9976bcc7eb54bb80c6ec782c79 (commit)
commit 47e8654ebd23107dde001a9e13c3a6fc985085f2
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Dec 13 20:48:14 2010 +0100
Parse command to execute properly into vector
postler/postler-service.vala | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/postler/postler-service.vala b/postler/postler-service.vala
index 058a1d4..faa1cbd 100644
--- a/postler/postler-service.vala
+++ b/postler/postler-service.vala
@@ -19,11 +19,12 @@ namespace Postler {
bool execute_command_with_status (string command) {
try {
+ string[] argv;
Pid pid;
int out_fd;
- Process.spawn_async_with_pipes (null, command.split (" "), null,
- SpawnFlags.LEAVE_DESCRIPTORS_OPEN
- | SpawnFlags.SEARCH_PATH,
+ Shell.parse_argv (command, out argv);
+ Process.spawn_async_with_pipes (null, argv, null,
+ SpawnFlags.SEARCH_PATH,
null, out pid, null, out out_fd, null);
IOChannel ioc = new IOChannel.unix_new (out_fd);
ioc.add_watch (IOCondition.IN | IOCondition.HUP, mbsync_input);
More information about the Xfce4-commits
mailing list