[Xfce4-commits] <postler:master> Use GLib to quote arguments for modules
Christian Dywan
noreply at xfce.org
Wed Jan 26 20:16:02 CET 2011
Updating branch refs/heads/master
to 7d90014aac20ad17a8a3ad352ac9879cd2d20862 (commit)
from 43aa9096df404c8187e088a24b1a78cc89f9aba5 (commit)
commit 7d90014aac20ad17a8a3ad352ac9879cd2d20862
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Jan 26 20:07:45 2011 +0100
Use GLib to quote arguments for modules
postler/postler-app.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/postler/postler-app.vala b/postler/postler-app.vala
index f64c821..5a63e57 100644
--- a/postler/postler-app.vala
+++ b/postler/postler-app.vala
@@ -194,9 +194,9 @@ public class Postler.App : Unique.App {
string command = argv0 + " --module " + name;
if (arg1 != null)
- command += " '" + arg1 + "'";
+ command += " " + Shell.quote (arg1);
if (arg2 != null)
- command += " '" + arg2 + "'";
+ command += " " + Shell.quote (arg2);
try {
var info = GLib.AppInfo.create_from_commandline (command, "", 0);
if (info.launch (null, null))
More information about the Xfce4-commits
mailing list