I can reproduce it with a program which calls
`gtk_file_chooser_dialog_new`

$ $ cat g.c 
#include <gtk/gtk.h>
void open_file(const char *filename) {
  g_print("Opening file: %s\n", filename);
}
static void on_button_clicked(GtkWidget *widget, gpointer user_data) {
  GtkWidget *dialog;
  GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN;
  gint res;
  GtkWindow *parent_window = GTK_WINDOW(user_data);
  dialog = gtk_file_chooser_dialog_new("Open File", parent_window, action,
                                       "Cancel", GTK_RESPONSE_CANCEL, "Open",
                                       GTK_RESPONSE_ACCEPT, NULL);
  res = gtk_dialog_run(GTK_DIALOG(dialog));
  if (res == GTK_RESPONSE_ACCEPT) {
    char *filename;
    GtkFileChooser *chooser = GTK_FILE_CHOOSER(dialog);
    filename = gtk_file_chooser_get_filename(chooser);
    open_file(filename);
    g_free(filename);
  }
  gtk_widget_destroy(dialog);
}
int main(int argc, char *argv[]) {
  GtkWidget *window;
  GtkWidget *button;
  gtk_init(&argc, &argv);
  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title(GTK_WINDOW(window), "GTK File Chooser Example");
  gtk_window_set_default_size(GTK_WINDOW(window), 400, 200);
  g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
  button = gtk_button_new_with_label("Open File...");
  g_signal_connect(button, "clicked", G_CALLBACK(on_button_clicked), window);
  gtk_container_add(GTK_CONTAINER(window), button);
  gtk_widget_show_all(window);
  gtk_main();
  return 0;
}
$ cc g.c `pkg-config --cflags --libs gtk+-3.0`
$ ./a.out 
Error creating proxy: Error calling StartServiceByName for 
org.gtk.vfs.AfcVolumeMonitor: Timeout was reached (g-io-error-quark, 24)
Opening file: /home/lisergey/a.out

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/2109677

Title:
   File open dialog takes several minutes to appear

Status in nautilus package in Ubuntu:
  New

Bug description:
  It takes several minutes (typically 2–3 minutes) for the file open
  dialog to appear in any application. This delay started immediately
  after upgrading to Ubuntu 25.04, and affects all programs that use the
  standard GTK file chooser.

  For example, even running Nautilus on an empty directory triggers the issue:
  $ mkdir empty
  $ nautilus empty
  Failed to register: Timeout was reached

  This behavior is consistent and highly disruptive, making everyday
  tasks like opening or saving files extremely frustrating.

  $ lsb_release -rd
  Description:  Ubuntu 25.04
  Release:      25.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/2109677/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to