# HG changeset patch # User Colin Clark # Date 1502288067 -3600 # Node ID c231b2cb9842a023ed79f81cfe4895c2adebf901 # Parent 450bb908942786b5fca823e13e43e80baf8c48f9 Addl fix #436: Add 'Losslessly rotate image' keyboard shortcuts https://github.com/BestImageViewer/geeqie/issues/436 Send stderr to /dev/null diff -r 450bb9089427 -r c231b2cb9842 src/layout_util.c --- a/src/layout_util.c Tue Aug 08 22:10:21 2017 +0100 +++ b/src/layout_util.c Wed Aug 09 15:14:27 2017 +0100 @@ -2781,11 +2781,11 @@ gtk_action_set_sensitive(action, lw->split_mode != SPLIT_NONE); action = gtk_action_group_get_action(lw->action_group, "WriteRotation"); - gtk_action_set_sensitive(action, !(runcmd("which exiftran >/dev/null") || - runcmd("which mogrify >/dev/null") || options->metadata.write_orientation)); + gtk_action_set_sensitive(action, !(runcmd("which exiftran >/dev/null 2>&1") || + runcmd("which mogrify >/dev/null 2>&1") || options->metadata.write_orientation)); action = gtk_action_group_get_action(lw->action_group, "WriteRotationKeepDate"); - gtk_action_set_sensitive(action, !(runcmd("which exiftran >/dev/null") || - runcmd("which mogrify >/dev/null") || options->metadata.write_orientation)); + gtk_action_set_sensitive(action, !(runcmd("which exiftran >/dev/null 2>&1") || + runcmd("which mogrify >/dev/null 2>&1") || options->metadata.write_orientation)); action = gtk_action_group_get_action(lw->action_group, "StereoAuto"); gtk_radio_action_set_current_value(GTK_RADIO_ACTION(action), layout_image_stereo_pixbuf_get(lw));