From 864abd6be0dd9d2292711738a231d15e090261aa Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 4 Apr 2026 16:00:46 +0200 Subject: [PATCH] =?UTF-8?q?app:=20print=20error=20message=20when=20failing?= =?UTF-8?q?=20to=20open=20from=20command=20line=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … even when we have no display. gimp_message() supports a NULL handler object and we get proper GIMP-Error message printed on stderr, e.g. when GIMP is run from the build system. We want as much info as possible when debugging our build scripts. This is part of fixes to improve situations such as seen in #16160. --- app/file/file-open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/file/file-open.c b/app/file/file-open.c index 1f3bee8575..b569b4c7af 100644 --- a/app/file/file-open.c +++ b/app/file/file-open.c @@ -694,7 +694,7 @@ file_open_from_command_line (Gimp *gimp, g_object_ref (file), (GDestroyNotify) g_object_unref); } - else if (status != GIMP_PDB_SUCCESS && status != GIMP_PDB_CANCEL && display) + else if (status != GIMP_PDB_SUCCESS && status != GIMP_PDB_CANCEL) { gimp_message (gimp, G_OBJECT (display), GIMP_MESSAGE_ERROR, _("Opening '%s' failed: %s"),