Bug#1055971: atril: should not use the filename extension to determine the file type
Package: atril
Version: 1.26.0-2+b1
Severity: normal
Consider a gzipped postscript file with 2 different names:
file.ps.gz
file.ps-1.gz
While file.ps.gz can be read correctly by atril, for file.ps-1.gz,
atril gives the following error:
Unable to open document
File type Gzip archive (application/gzip) is not supported
Using filename extensions is a bad idea, as filenames may not have
the expected extensions for files downloaded from the web. In
particular, when downloading a file file.ps.gz, Firefox uses this
filename if the file doesn't exist yet, but if it already exists,
Firefox renames it to "file.ps-1.gz" (increasing the number for
each additional download).
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Kernel: Linux 6.5.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages atril depends on:
ii atril-common 1.26.0-2
ii dconf-gsettings-backend [gsettings-backend] 0.40.0-4
ii libatk1.0-0 2.50.0-1
ii libatrildocument3 1.26.0-2+b1
ii libatrilview3 1.26.0-2+b1
ii libc6 2.37-12
ii libcaja-extension1 1.26.1-1
ii libgdk-pixbuf-2.0-0 2.42.10+dfsg-3
ii libglib2.0-0 2.78.1-4
ii libgtk-3-0 3.24.38-6
ii libice6 2:1.0.10-1
ii libsecret-1-0 0.21.1-1
ii libsm6 2:1.2.3-1
ii libxml2 2.9.14+dfsg-1.3
ii shared-mime-info 2.2-1
Versions of packages atril recommends:
hi dbus-user-session [default-dbus-session-bus] 1.14.10-1
hi dbus-x11 [dbus-session-bus] 1.14.10-1
ii gvfs 1.52.1-1
Versions of packages atril suggests:
pn caja <none>
ii poppler-data 0.4.12-1
pn unrar <none>
-- no debconf information
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: