From 5ad9ecaff050b3417d330ea9d229679ec2511217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 23 Oct 2017 00:18:19 +0200 Subject: [PATCH] appchooserwidget: Don't limit application list unconditionally As documented, GtkAppChooser is "typically [used] for the purpose of opening a file". However given that applications that support neither opening files nor URLs are filtered out, the chooser is not actual useful for any other (atypical) usage. Change that by only applying the filtering if a content-type was set, and use the full unfiltered list otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=789327 --- gtk/gtkappchooserwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c index 9a4103a8fc..c8da419055 100644 --- a/gtk/gtkappchooserwidget.c +++ b/gtk/gtkappchooserwidget.c @@ -554,7 +554,8 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self, { app = l->data; - if (!g_app_info_supports_uris (app) && + if (self->priv->content_type != NULL && + !g_app_info_supports_uris (app) && !g_app_info_supports_files (app)) continue;