--- app_procs.c.o 2004-04-13 22:54:13 +0400 +++ app/app_procs.c 2004-06-20 18:11:10 +0400 @@ -431,7 +431,7 @@ #endif &files, &export_file_name, &export_file_format, &size); - if (argv) { + if (argv && dia_is_interactive) { #ifdef GNOME GnomeProgram *program = gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, @@ -454,12 +454,11 @@ gnome_window_icon_set_default_from_file (GNOME_ICONDIR"/dia_gnome_icon.png"); #else - if (dia_is_interactive) - gtk_init(&argc, &argv); - else - g_type_init(); + gtk_init(&argc, &argv); #endif } + else + g_type_init(); #ifdef HAVE_POPT /* done with option parsing, don't leak */