Skip to content

network: Fix 802.1x TLS file chooser filters

Jake Dane requested to merge (removed):jakedane-eap-tls-dialog-patch into main

If on the Security tab in the connection editor one selected 802.1x with TLS authentication, the 3 file chooser dialogs there didn't let one select any file. This was because allowed extensions were passed to gtk_file_filter_add_suffix () with the leading dot but that function expects them without the leading dot.

This could be fixed in the code by skipping over the dot but as per discussion on !1433 (closed) it is preferable to use mime types instead. The code is changed to use mime types for the file chooser dialog filter and for checking a file is of the right type.

Fixes #2022 (closed).

Merge request reports