[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

urlview, lynx, zgv and mailcap



Has anyone else had this problem?

(Woody, i386, 2.4.18)

When urlview is invoked on the virtual terminal (from eg. mutt), and it
starts up lynx, then when I try to follow a link to an image, all I get
is the download/cancel option.  However, when I start up lynx normally,
and try to view an image, zgv is started as expected.

After some messing around with this, I discovered that a call, made by
the mailcap test, to \usr\bin\tty, is returning /dev/tty when urlview
has been called (as opposed to /dev/ttyN when urlview is not involved),
so the test (from /usr/lib/mime/packages/zgv)

 expr "`/usr/bin/tty`" : '/dev/\\(tty\\|vc/\\)[0-9][0-9]*'

fails, and zgv won't be started.

I think that this is a bug, but I'm not sure which package is to blame -
I don't know whether /usr/bin/tty (or the corresponding libc call
ttyname) is doing the wrong thing by returning "/dev/tty", or if urlview
is messing up the environment so that /usr/bin/tty doesn't behave as
expected, or if the zgv mailcap rule is checking for the wrong thing.

As a workaround, I changed each occurrence of the mailcap test to 

 expr "`/usr/bin/tty`" : '/dev/\\(tty\\|vc/\\)[0-9]*' 

and ran update-mime.  This works, but I'm concerned that it may not be
the right way of doing things.

Glyn

-- 
glyn.kennington@hertford.ox.ac.uk

You know I will obey
So please don't make me beg
For blood sex and booze you give me


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: