Kirill Smelkov wrote:  [Mon Oct 12 2009, 09:40:11AM EDT]
> I too think, --action=cat should ignore X viewers.
> 
> After all, original --action=cat use case (as requested by me btw in
> #526690) was to use it as canonical filter. So _filtering_ functionality
> was assumed by --action=cat, and otherwise to me cat seems to be useless
> because we have --action=view.

I tend to agree that the current implementation of --action=cat
is not useful.

> For my needs I created an extra script
> 
> ---- 8< astextplain ----
> #!/bin/sh
> unset DISPLAY
> run-mailcap --action=cat $*
> ---- 8< ----
> 
> instead of just using `run-mailcap --action=cat` where appropriate.

This has the unfortunate effect of avoiding translators that
require an X connection, for example unoconv. That's why
I finally realized this method wasn't right and I opened this
bug.

> What are use-cases for current cat behaviour? If there is none
> besides being used as a filter, let's please make it ignore
> interactive viewers and just pipe the result to stdout.

That would be my preference too. To obtain the functionality as
Brian implemented it, I'd probably rather something like
"run-mailcap --action=view --nopager" since it's such a minor
change from the default view action. However that isn't
interesting to me so I didn't implement it.

Kirill, if you're interested in trying it, I've attached my
version of run-mailcap which includes my patches from #533721,
#533722 and #533723. Presently I have this in my /usr/local/bin
to override the default installation.

Regards,
Aron



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to