plug-ins: check that the installed RawTherapee is at least version 5.2

This commit is contained in:
Alberto Griggio 2017-07-24 19:12:35 +02:00 committed by Jehan
parent 619a05a688
commit 38be044bba
1 changed files with 3 additions and 4 deletions

View File

@ -109,14 +109,13 @@ init (void)
NULL, NULL,
NULL)) NULL))
{ {
char *rtversion = NULL; int rtmajor = 0, rtminor = 0;
if (sscanf (rawtherapee_stdout, if (sscanf (rawtherapee_stdout,
"RawTherapee, version %ms", "RawTherapee, version %d.%d",
&rtversion) == 1) &rtmajor, &rtminor) == 2 && rtmajor >= 5 && rtminor >= 2)
{ {
have_rawtherapee = TRUE; have_rawtherapee = TRUE;
free (rtversion);
} }
g_free (rawtherapee_stdout); g_free (rawtherapee_stdout);