GTK File Chooser file type filter too restrictive

Bug #1958658 reported by Peter Freeth
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdg-desktop-portal-gtk (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Description: Ubuntu 21.10
Release: 21.10
xdg-desktop-portal-gtk:
Installed: 1.8.0-1build1

When calling the GTK File Chooser from inside another program such as Google Chrome, the files displayed are filtered according to a file extension filter. The bottom right of the chooser window shows a button "customised files".

This creates a problem in that file extensions are an unreliable indication of file type.

For example, when uploading an image to a website, Google Chrome filters for image files by lower case extensions. Any images with upper case file extensions are filtered out. The user has to select "all files" to see the files with upper case file names/extensions.

Google Chrome is to blame for sending incomplete file filter information to the file chooser, however the file chooser could also match both upper and lower case extensions so that the calling program doesn't need to take this into account.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: xdg-desktop-portal-gtk 1.8.0-1build1
ProcVersionSignature: Ubuntu 5.13.0-27.29-generic 5.13.19
Uname: Linux 5.13.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Jan 21 15:20:00 2022
ExecutablePath: /usr/libexec/xdg-desktop-portal-gtk
InstallationDate: Installed on 2019-10-11 (832 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Beta amd64 (20191010)
ProcEnviron:
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
SourcePackage: xdg-desktop-portal-gtk
UpgradeStatus: Upgraded to impish on 2021-10-20 (93 days ago)

Revision history for this message
Peter Freeth (peterfreeth) wrote :
Changed in xdg-desktop-portal-gtk (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdg-desktop-portal-gtk (Ubuntu):
status: New → Confirmed
Revision history for this message
ram32 (osiris1987) wrote :

I confirm that this bug is also present on Ubuntu 22.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.