Bug 772789 - Mac DMG 2.8.18 gets plug-ins path wrong, can't open JPEG files

Don't migrate any paths from an older gimprc. This unfortunately kills
all manually added paths, but makes sure all paths default to the
files of the new GIMP version, could be improved by parsing the path
and replacing only the right elements.
This commit is contained in:
Michael Natterer 2016-11-07 17:04:05 +01:00
parent b249a998aa
commit 2a9b20d384
1 changed files with 3 additions and 2 deletions

View File

@ -586,14 +586,15 @@ user_update_controllerrc (const GMatchInfo *matched_value,
} }
#define GIMPRC_UPDATE_PATTERN \ #define GIMPRC_UPDATE_PATTERN \
"\\(theme [^)]*\\)" "\\(theme [^)]*\\)" "|" \
"\\(.*-path [^)]*\\)"
static gboolean static gboolean
user_update_gimprc (const GMatchInfo *matched_value, user_update_gimprc (const GMatchInfo *matched_value,
GString *new_value, GString *new_value,
gpointer data) gpointer data)
{ {
/* Do not migrate themes from GIMP < 2.10. */ /* Do not migrate paths and themes from GIMP < 2.10. */
return FALSE; return FALSE;
} }