Mercurial > hg > forks > geeqie
changeset 2575:c231b2cb9842
Addl fix #436: Add 'Losslessly rotate image' keyboard shortcuts
https://github.com/BestImageViewer/geeqie/issues/436
Send stderr to /dev/null
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Wed, 09 Aug 2017 15:14:27 +0100 |
parents | 450bb9089427 |
children | 1e7c8dca206e |
files | src/layout_util.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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));