diff --git a/src/common/gimp.c b/src/common/gimp.c index d70352a52166..9d86aedb7719 100644 --- a/src/common/gimp.c +++ b/src/common/gimp.c @@ -63,14 +63,14 @@ gboolean dt_export_gimp_file(const dt_imgid_t imgid) NULL, // icc_filename DT_INTENT_PERCEPTUAL, NULL); // &metadata - fprintf(stdout, "<<width, image->height); + printf("%i %i\n", image->width, image->height); dt_image_cache_read_release(darktable.image_cache, image); } - fprintf(stdout, "gimp>>>\n"); + printf("gimp>>>\n"); return TRUE; } diff --git a/src/main.c b/src/main.c index 28dc9c902697..7adff00c8459 100644 --- a/src/main.c +++ b/src/main.c @@ -104,11 +104,16 @@ int main(int argc, char *argv[]) g_setenv("GTK_CSD", "0", TRUE); #endif - if(dt_init(argc, argv, TRUE, TRUE, NULL)) exit(1); + if(dt_init(argc, argv, TRUE, TRUE, NULL)) + { + if(darktable.gimp.mode) + printf("\n<<>>\n"); + exit(1); + } if(dt_check_gimpmode_ok("version")) { - fprintf(stdout, "\n<<>>\n", DT_GIMP_VERSION); + printf("\n<<>>\n", DT_GIMP_VERSION); exit(0); } @@ -117,7 +122,7 @@ int main(int argc, char *argv[]) || (dt_check_gimpmode("thumb") && !dt_check_gimpmode_ok("thumb")) || darktable.gimp.error) { - fprintf(stdout, "\n<<>>\n"); + printf("\n<<>>\n"); exit(1); } @@ -143,7 +148,7 @@ int main(int argc, char *argv[]) dt_cleanup(); if(darktable.gimp.mode && darktable.gimp.error) - fprintf(stdout, "\n<<>>\n"); + printf("\n<<>>\n"); #ifdef _WIN32 if(redirect_output)