Mercurial > geeqie.yaz
comparison src/utilops.c @ 1616:475bbae6a7a3
do not block the files sent to external editors like gimp
author | nadvornik |
---|---|
date | Sun, 31 May 2009 11:08:00 +0000 |
parents | b88069021d25 |
children | 011e8dbda7f2 |
comparison
equal
deleted
inserted
replaced
1615:d960b1743ad8 | 1616:475bbae6a7a3 |
---|---|
843 { | 843 { |
844 flags = start_editor_from_file_full(ud->external_command, ud->dir_fd, file_util_perform_ci_dir_cb, ud); | 844 flags = start_editor_from_file_full(ud->external_command, ud->dir_fd, file_util_perform_ci_dir_cb, ud); |
845 } | 845 } |
846 else | 846 else |
847 { | 847 { |
848 flags = start_editor_from_filelist_full(ud->external_command, ud->flist, file_util_perform_ci_cb, ud); | 848 if (editor_blocks_file(ud->external_command)) |
849 { | |
850 DEBUG_1("Starting %s and waiting for results", ud->external_command); | |
851 flags = start_editor_from_filelist_full(ud->external_command, ud->flist, file_util_perform_ci_cb, ud); | |
852 } | |
853 else | |
854 { | |
855 /* start the editor without callback and finish the operation internally */ | |
856 DEBUG_1("Starting %s and finishing the operation", ud->external_command); | |
857 flags = start_editor_from_filelist(ud->external_command, ud->flist); | |
858 file_util_perform_ci_internal(ud); | |
859 } | |
849 } | 860 } |
850 | 861 |
851 if (flags) | 862 if (flags) |
852 { | 863 { |
853 gchar *text = g_strdup_printf(_("%s\nUnable to start external command.\n"), editor_get_error_str(flags)); | 864 gchar *text = g_strdup_printf(_("%s\nUnable to start external command.\n"), editor_get_error_str(flags)); |