[gimp] plug-ins: screenshot: quote the filename passed to OS X' screencapture
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: screenshot: quote the filename passed to OS X' screencapture
- Date: Thu, 31 Mar 2016 20:15:16 +0000 (UTC)
commit 3559097c804e9cecce6b1d22e1a1c709060a809f
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 31 22:14:14 2016 +0200
plug-ins: screenshot: quote the filename passed to OS X' screencapture
plug-ins/screenshot/screenshot-osx.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot-osx.c b/plug-ins/screenshot/screenshot-osx.c
index 36cf7eb..8544adf 100644
--- a/plug-ins/screenshot/screenshot-osx.c
+++ b/plug-ins/screenshot/screenshot-osx.c
@@ -78,6 +78,7 @@ screenshot_osx_shoot (ScreenshotValues *shootvals,
const gchar *cursor = " ";
gchar *delay = NULL;
gchar *filename;
+ gchar *quoted;
gchar *command = NULL;
switch (shootvals->shoot_type)
@@ -106,15 +107,17 @@ screenshot_osx_shoot (ScreenshotValues *shootvals,
cursor = "-C";
filename = gimp_temp_name ("png");
+ quoted = g_shell_quote (filename);
command = g_strjoin (" ",
"/usr/sbin/screencapture",
mode,
cursor,
delay,
- filename,
+ quoted,
NULL);
+ g_free (quoted);
g_free (delay);
if (system ((const char *) command) == EXIT_SUCCESS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]