From ddc209ccebba97d4bf6f45f47c50e693dae6bd7a Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sun, 8 May 2022 12:26:16 -0400 Subject: [PATCH] Drop unsupported formats from evince. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Years ago, evince used to display many different image formats. I don't think it does any more. I'm running evince 42.2 from debian testing/unstable. I tested this with a simple image (/usr/share/icons/cab_view.png) and imagemagick's "convert" tool like so: ```sh suffixes="gif jpg png pnm pbm pgm ppm bmp xpm ico xwd tga pcx tiff miff" for x in $suffixes; do convert cab_view.png cab_view.$x evince cab_view.$x done ``` For all of the formats listed above except for "tiff", evince reports "Unable to open document: …", and "File type … is not supported" So i've removed those image formats from the evince tab completion. --- completions/evince | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/evince b/completions/evince index 1c97dd93c74..42723821a78 100644 --- a/completions/evince +++ b/completions/evince @@ -25,7 +25,7 @@ _evince() return fi - _filedir '@(@(?(e)ps|?(E)PS|[pf]df|[PF]DF|dvi|DVI)?(.gz|.GZ|.bz2|.BZ2|.xz|.XZ)|cb[rz]|djv?(u)|gif|jp?(e)g|miff|tif?(f)|pn[gm]|p[bgp]m|bmp|xpm|ico|xwd|tga|pcx)' + _filedir '@(@(?(e)ps|?(E)PS|[pf]df|[PF]DF|dvi|DVI)?(.gz|.GZ|.bz2|.BZ2|.xz|.XZ)|cb[rz]|djv?(u)|tif?(f))' } && complete -F _evince evince