Bug 76704 - image viewer does not exist
Summary: image viewer does not exist
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mc
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Jay Turner
Depends On:
TreeView+ depends on / blocked
Reported: 2002-10-25 03:18 UTC by Florin Andrei
Modified: 2015-01-08 00:01 UTC (History)
4 users (show)

Fixed In Version: 4.6.1-0.8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-10-29 12:22:45 UTC

Attachments (Terms of Use)

Description Florin Andrei 2002-10-25 03:18:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830

Description of problem:
If you hit enter on an image, mc is supposed to run an image viewer.
However, the image viewers provided in the mc settings do not exist in Red Hat
default install.
The /usr/lib/mc/mc.ext file has to be modified to use one of the image viewers
that are provided in the distribution.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.run mc
2.go to an image file
3.hit enter

Actual Results:  mc says it cannot find ee

Expected Results:  mc should run an existing image viewer to view the image

Additional info:

This change to /usr/lib/mc/mc.ext makes mc happy:

--- mc.ext.bak  2002-10-24 20:13:05.000000000 -0700
+++ mc.ext      2002-10-24 20:13:22.000000000 -0700
@@ -237,7 +237,7 @@
        View=sxpm %f

-       Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (ee %f &); fi
+       Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (eog %f &); fi
        View=%view{ascii} identify %f
        #View=%view{ascii} asciiview %f
        Set root window to this image=background-properties --setwallpaper %f &

Comment 1 Jindrich Novy 2004-10-29 12:22:45 UTC
Hi Florin,

this is fixed rawhide for rather long time. I decided to use display
as it knows almost everything and it's present in Red Hat releases.
The recent upstream version of mc uses gqview so the question is
whether we should keep gqview or convert to display (propose it upstream).

In my opinion I prefer display since it knows far more image formats
than gqview.

Florin, Leonard, Miloslav, your opinion?

Thanks for the report and patch,

Comment 2 Miloslav Trmac 2004-10-29 12:52:31 UTC
As far as I can tell, gqview is not shipped in Fedora Core any more,
so the answer is obvious.

Comment 3 Florin Andrei 2004-10-29 16:05:45 UTC
I really don't care which viewer is used as long as it's included by
default in Red Hat / Fedora, it's simple, lightweight and has fairly
good usability. It doesn't have to be a huge thing - viewers called
from shells are typically at a fairly trivial level w.r.t. the

One thing though: whichever viewer is chosen, it would be nice to have
the ability to scale the image to the window size, if it's bigger.
That should be the default. Otherwise, it will be awkward to view
large images.
Other than that, the simpler the better.

Comment 4 Jindrich Novy 2004-11-01 10:14:11 UTC
It is exactly what display does when the image won't fit the screen.
It adds a "pan icon" window which helps you to scroll within a large
image displayed in the second window, usualy covering the whole screen
and "pan icon" is always on top. I consider this as a better solution
than downsampling the image, you have this possibility in display though.

Note You need to log in before you can comment on or make changes to this bug.