[gthumb] Skip gnome_vfs_is_executable_command_string before executing commands
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Skip gnome_vfs_is_executable_command_string before executing commands
- Date: Tue, 19 May 2009 19:04:52 -0400 (EDT)
commit 93ffe34cf02343c60e5384df110bc18f7d3e6f76
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Tue May 19 19:03:52 2009 -0400
Skip gnome_vfs_is_executable_command_string before executing commands
Just execute the command string, and tolerate failure.
---
libgthumb/file-utils.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index 686a203..26909cd 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -2231,8 +2231,7 @@ get_pixbuf_using_external_converter (FileData *file,
/* Check for an embedded thumbnail first */
thumb_command = g_strdup_printf ("dcraw -e %s", local_file_esc);
- if (gnome_vfs_is_executable_command_string (thumb_command))
- g_spawn_command_line_sync (thumb_command, NULL, NULL, NULL, NULL);
+ g_spawn_command_line_sync (thumb_command, NULL, NULL, NULL, NULL);
g_free (thumb_command);
first_part = remove_extension_from_path (file->local_path);
@@ -2295,8 +2294,7 @@ get_pixbuf_using_external_converter (FileData *file,
}
if (command != NULL) {
- if (gnome_vfs_is_executable_command_string (command))
- system (command);
+ system (command);
g_free (command);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]