aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-03-15 05:25:44 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-03-15 05:52:32 +0100
commit25c91f5a77fcc7aabf7226a2ffee3817afdf49df (patch)
tree9b8b6ecdf9e74bb7b90e7d9c2addf9e0202dc23b
parent796b05c9a5f04aba87e26c5a8384d84edee20b77 (diff)
downloadfiv-25c91f5a77fcc7aabf7226a2ffee3817afdf49df.tar.gz
fiv-25c91f5a77fcc7aabf7226a2ffee3817afdf49df.tar.xz
fiv-25c91f5a77fcc7aabf7226a2ffee3817afdf49df.zip
Add a note about default applications
-rw-r--r--fiv-context-menu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fiv-context-menu.c b/fiv-context-menu.c
index b5dafc4..3ee211d 100644
--- a/fiv-context-menu.c
+++ b/fiv-context-menu.c
@@ -396,6 +396,15 @@ on_chooser_activate(GtkMenuItem *item, gpointer user_data)
GtkWidget *dialog = gtk_app_chooser_dialog_new_for_content_type(window,
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, ctx->content_type);
g_clear_object(&window);
+
+#if 0
+ // This exists as a concept in mimeapps.list, but GNOME infuriatingly
+ // infers it from the last used application if missing.
+ gtk_app_chooser_widget_set_show_default(
+ GTK_APP_CHOOSER_WIDGET(gtk_app_chooser_dialog_get_widget(
+ GTK_APP_CHOOSER_DIALOG(dialog))), TRUE);
+#endif
+
if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_OK) {
ctx->app_info = gtk_app_chooser_get_app_info(GTK_APP_CHOOSER(dialog));
open_context_launch(GTK_WIDGET(item), ctx);