mirror of https://github.com/GNOME/gimp.git
app: use gimp_config_writer_string() to output the mypaint-brush-path
so it is properly escaped.
This commit is contained in:
parent
2aa4426d4f
commit
7be2d1457c
|
@ -173,12 +173,15 @@ dump_gimprc_system (GimpConfig *rc,
|
||||||
}
|
}
|
||||||
else if (! strcmp (prop_spec->name, "mypaint-brush-path"))
|
else if (! strcmp (prop_spec->name, "mypaint-brush-path"))
|
||||||
{
|
{
|
||||||
|
gchar *path = g_strdup_printf ("@mypaint_brushes_dir@%s"
|
||||||
|
"~/.mypaint/brushes",
|
||||||
|
G_SEARCHPATH_SEPARATOR_S);
|
||||||
|
|
||||||
gimp_config_writer_open (writer, "mypaint-brush-path");
|
gimp_config_writer_open (writer, "mypaint-brush-path");
|
||||||
gimp_config_writer_printf (writer,
|
gimp_config_writer_string (writer, path);
|
||||||
"\"@mypaint_brushes_dir@%s"
|
|
||||||
"~/.mypaint/brushes\"",
|
|
||||||
G_SEARCHPATH_SEPARATOR_S);
|
|
||||||
gimp_config_writer_close (writer);
|
gimp_config_writer_close (writer);
|
||||||
|
|
||||||
|
g_free (path);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -326,13 +329,16 @@ dump_gimprc_manpage (GimpConfig *rc,
|
||||||
}
|
}
|
||||||
else if (! strcmp (prop_spec->name, "mypaint-brush-path"))
|
else if (! strcmp (prop_spec->name, "mypaint-brush-path"))
|
||||||
{
|
{
|
||||||
|
gchar *path = g_strdup_printf ("@mypaint_brushes_dir@%s"
|
||||||
|
"~/.mypaint/brushes",
|
||||||
|
G_SEARCHPATH_SEPARATOR_S);
|
||||||
|
|
||||||
gimp_config_writer_open (writer, "mypaint-brush-path");
|
gimp_config_writer_open (writer, "mypaint-brush-path");
|
||||||
gimp_config_writer_printf (writer,
|
gimp_config_writer_string (writer, path);
|
||||||
"\"@mypaint_brushes_dir@%s"
|
|
||||||
"~/.mypaint/brushes\"",
|
|
||||||
G_SEARCHPATH_SEPARATOR_S);
|
|
||||||
gimp_config_writer_close (writer);
|
gimp_config_writer_close (writer);
|
||||||
|
|
||||||
|
g_free (path);
|
||||||
|
|
||||||
success = TRUE;
|
success = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue