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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109677
Title:
File open dialog takes several minutes to appear
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/2109677/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs