aboutsummaryrefslogtreecommitdiff
path: root/fiv-context-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv-context-menu.c')
-rw-r--r--fiv-context-menu.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fiv-context-menu.c b/fiv-context-menu.c
index 223558a..b5dafc4 100644
--- a/fiv-context-menu.c
+++ b/fiv-context-menu.c
@@ -188,9 +188,12 @@ info_spawn(GtkWidget *dialog, const char *path, GBytes *bytes_in)
// TODO(p): Add a fallback to internal capabilities.
// The simplest is to specify the filename and the resolution.
GError *error = NULL;
- GSubprocess *subprocess = g_subprocess_new(flags, &error, "exiftool",
- "-tab", "-groupNames", "-duplicates", "-extractEmbedded", "--binary",
- "-quiet", "--", path, NULL);
+ GSubprocess *subprocess = g_subprocess_new(flags, &error,
+#ifdef G_OS_WIN32
+ "wperl",
+#endif
+ "exiftool", "-tab", "-groupNames", "-duplicates", "-extractEmbedded",
+ "--binary", "-quiet", "--", path, NULL);
if (error) {
info_redirect_error(dialog, error);
return;