From 7cbd24dd2f99c160b0e4c9765783b2294caca6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 11 Aug 2022 14:49:23 +0200 Subject: Bundle a fuller installation of Perl/ExifTool wperl is necessary to get rid of the console window, which is merely one of several issues with the PAR Packer-based ExifTool bundle used in the last commit. The Perl installation could be heavily trimmed down, but it seems to require a very manual process. --- fiv-context-menu.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fiv-context-menu.c') 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; -- cgit v1.2.3