[Xfce4-commits] <xfce4-screenshooter:master> Fix opening of screenshots with an application.

Jérôme Guelfucci jeromeg at xfce.org
Fri Aug 14 00:26:29 CEST 2009


Updating branch refs/heads/master
         to 6463df2dbb5c67fa9a39804ab414cd92f3d109b9 (commit)
       from 9271cb32d3094754e82c2f39cfde5d0a4414e589 (commit)

commit 6463df2dbb5c67fa9a39804ab414cd92f3d109b9
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Wed Aug 12 20:22:41 2009 +0200

    Fix opening of screenshots with an application.
    
    A test was incorrect, and escaping the screenshot path is safer in
    most cases.

 ChangeLog                 |    7 +++++++
 lib/screenshooter-utils.c |    5 +++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index db867e0..2b4163f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-08-12 jeromeg
 
+Fix opening of screenshots with an application.
+
+A test was incorrect, and escaping the screenshot path is safer in
+most cases.
+
+2009-08-12 jeromeg
+
 Add a scroll feature for the panel plugin.
 
 When scrolling the panel plugin button, the region to be
diff --git a/lib/screenshooter-utils.c b/lib/screenshooter-utils.c
index 5bd6386..bdd3694 100644
--- a/lib/screenshooter-utils.c
+++ b/lib/screenshooter-utils.c
@@ -167,12 +167,13 @@ screenshooter_open_screenshot (const gchar *screenshot_path, const gchar *applic
 
   TRACE ("Path was != NULL");
 
-  if (!g_str_equal (application, "none"))
+  if (g_str_equal (application, "none"))
     return;
 
   TRACE ("Application was not none");
 
-  command = g_strconcat (application, " ", screenshot_path, NULL);
+  command = g_strconcat (application, " ",
+                         "\"", screenshot_path, "\"", NULL);
 
   TRACE ("Launch the command");
 



More information about the Xfce4-commits mailing list