diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 14:49:23 +0200 | 
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 16:11:07 +0200 | 
| commit | 7cbd24dd2f99c160b0e4c9765783b2294caca6dc (patch) | |
| tree | 85c37ca3a67af4c837a249908b13c3c7e607fbb1 /fiv-context-menu.c | |
| parent | 1a163bdb8b4878f456fb04b33978a92f3fcd8e91 (diff) | |
| download | fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.tar.gz fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.tar.xz fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.zip | |
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.
Diffstat (limited to 'fiv-context-menu.c')
| -rw-r--r-- | fiv-context-menu.c | 9 | 
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; | 
