User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060603 Firefox/1.5.0.4 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060603 Firefox/1.5.0.4 I'm trying to use thunar_vfs in xfburn to provide mime-type informations but thunar_vfs_shutdown segfaults at exit. I don't know if i'm doing something wrong, the only thing i do is : mime_database = thunar_vfs_mime_database_get_default (); mime_info = thunar_vfs_mime_database_get_info_for_file (mime_database, full_path, NULL); screen = gtk_widget_get_screen (GTK_WIDGET (browser)); icon_theme = gtk_icon_theme_get_for_screen (screen); mime_icon_name = thunar_vfs_mime_info_lookup_icon_name (mime_info, icon_theme); mime_icon = gtk_icon_theme_load_icon (icon_theme, mime_icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR, GTK_ICON_LOOKUP_USE_BUILTIN, NULL); mime_str = thunar_vfs_mime_info_get_comment (mime_info); if (G_LIKELY (G_IS_OBJECT (mime_icon))) g_object_unref (mime_icon); thunar_vfs_mime_info_unref (mime_info); backtrace: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1222297936 (LWP 24567)] 0xb73afc99 in g_atomic_int_exchange_and_add () from /usr/lib/libglib-2.0.so.0 (gdb) bt #0 0xb73afc99 in g_atomic_int_exchange_and_add () from /usr/lib/libglib-2.0.so.0 #1 0xb7ec829e in IA__thunar_vfs_mime_info_unref (info=0x0) at thunar-vfs-mime-info.c:164 #2 0xb7ebf200 in _thunar_vfs_info_shutdown () at thunar-vfs-info.c:716 #3 0xb7ed5f8c in IA__thunar_vfs_shutdown () at thunar-vfs.c:88 #4 0x08057638 in main (argc=759583829, argv=0x6f430038) at xfburn-main.c:82 Reproducible: Always
That sounds like _thunar_vfs_info_init() was never invoked, hence thunar_vfs_init() was never invoked. Otherwise mime_application_octet_stream would not be NULL.
thunar_vfs_init is invoked (but before gtk_main if it matters), you can check that in xfburn-main.c:64
sorry for the noise i did invoke thunar_vfs_init but before gtk_init, therefpre g_type wasn't initialized (a too small terminal doesn't let me see the error messages)
Good to see that fixed. ;-)