[Xfce4-commits] <postler:master> Surround module arguments with quotes when spawning

Christian Dywan noreply at xfce.org
Mon Jun 21 20:12:01 CEST 2010


Updating branch refs/heads/master
         to 00463d2775ed179c23899cd2c4c56fdbd74abaa3 (commit)
       from 2e2d1b47c997f11e3c0cad37ca4ed26fd5adacd6 (commit)

commit 00463d2775ed179c23899cd2c4c56fdbd74abaa3
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Jun 19 21:11:25 2010 +0200

    Surround module arguments with quotes when spawning
    
    We assume that the passed argument is one argument and it can
    contain spaces.

 postler/postler-app.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-app.vala b/postler/postler-app.vala
index 99e32eb..ece74d4 100644
--- a/postler/postler-app.vala
+++ b/postler/postler-app.vala
@@ -147,7 +147,7 @@ public class Postler.App : Unique.App {
     }
 
     public static bool spawn_module (string name, string location) {
-        string command = argv0 + " --module " + name + " " + location;
+        string command = argv0 + " --module " + name + " '" + location + "'";
         try {
             var info = GLib.AppInfo.create_from_commandline (command, "", 0);
             if (info.launch (null, null))



More information about the Xfce4-commits mailing list