Resolve a few issues with MSYS2 cross-builds

- Fix launching of subprocesses (missing gspawn helpers).
 - Discard unused GSettings schemas.
 - Make the program find its user guide.
 - Bundle a somewhat suboptimal version of ExifTool.
This commit is contained in:
2022-08-11 11:36:31 +02:00
parent cf19f82875
commit 1a163bdb8b
5 changed files with 26 additions and 5 deletions

8
fiv.c
View File

@@ -1166,7 +1166,13 @@ static void
show_help_contents(void)
{
gchar *filename = g_strdup_printf("%s.html", PROJECT_NAME);
#ifdef G_OS_WIN32
gchar *prefix = g_win32_get_package_installation_directory_of_module(NULL);
gchar *path = g_build_filename(prefix, PROJECT_DOCDIR, filename, NULL);
g_free(prefix);
#else
gchar *path = g_build_filename(PROJECT_DOCDIR, filename, NULL);
#endif
g_free(filename);
GError *error = NULL;
gchar *uri = g_filename_to_uri(path, NULL, &error);
@@ -1945,7 +1951,7 @@ output_thumbnail(gchar **uris, gboolean extract, const char *size_arg)
#ifdef G_OS_WIN32
_setmode(fileno(stdout), _O_BINARY);
#endif // G_OS_WIN32
#endif
GError *error = NULL;
GFile *file = g_file_new_for_uri(uris[0]);