summaryrefslogtreecommitdiff
path: root/bin/gegl.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gegl.c')
-rw-r--r--bin/gegl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/gegl.c b/bin/gegl.c
index e6455a69..b2fe1556 100644
--- a/bin/gegl.c
+++ b/bin/gegl.c
@@ -76,6 +76,8 @@ static gboolean file_is_gegl_xml (const gchar *path)
return FALSE;
}
+int mrg_ui_main (int argc, char **argv);
+
gint
main (gint argc,
gchar **argv)
@@ -171,6 +173,12 @@ main (gint argc,
script = g_strdup (DEFAULT_COMPOSITION);
}
}
+
+ if (o->mode == GEGL_RUN_MODE_DISPLAY)
+ {
+ mrg_ui_main (argc, argv);
+ return 0;
+ }
gegl = gegl_node_new_from_xml (script, path_root);