GNOME Bugzilla – Bug 613133
gvfs support in open/save file dialog
Last modified: 2010-10-22 19:20:09 UTC
When opening or saving files in Dia, I don't view gvfs shortcuts in the file open or save dialog. I work on my linux platform on files located in a CIFS network. To workaround this problem, I use to type /home/XXX/.gvfs/[Path to the CIFS mounted files], but it's a little bit boring... (excuse for my bad english) $ dia --version Dia version 0.97, compilé à 15:00:38 le Jun 22 2009 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 9.10 Release: 9.10 Codename: karmic
gnome-vfs was disabled quite some time ago due to bug #159558 - but maybe the work-around was not necessary any longer even three days later. Replacing gtk_file_chooser_dialog_new_with_backend() with gtk_file_chooser_dialog_new(). See part of: http://git.gnome.org/browse/dia/diff/app/filedlg.c?id=2b369f1076d7b29248927dd06e6aaa0d9e1dd6ee 2004-11-26 Hans Breuer <hans@breuer.org> * app/filedlg.c : more absolute filenames where required and strip them where we need the filename only Also explicit DONT choose gnome-vfs backend cause its threading appears to crash Dia - at least in GNOME build, see bug #159558 2004-11-29 Hans Breuer <hans@breuer.org> * app/app_procs.c configure.in : although Dia is not threaded it appears as if we have to g_thread_init() to avoid crashing in some libraries which are thread enabled
Good job, thanks ! I wich this update will be deployed in the next version of Dia, which is a very good tool for drawing diagrams.
Created attachment 166855 [details] [review] A small step towards vfs support Unfortunately it is not that easy to make Dia fully vfs aware. The attached gives the ability to open files via samba share ( /home/<user>/.gvfs/... ) but saving the file gives: "Bad file descriptor" and exporting gives "Permission denied". This might be just a problem of access rights or something more serious. It also prints "sys:1: GtkWarning: Operation not supported by backend". So for the moment this remains: Patches accepted :)
By coincidence my Samba configuration was broken when I was testing this first. Fixed and commited: http://git.gnome.org./browse/dia/commit/?id=249956fb881f48e8e5af4c4d2471d43aaacc8c39
*** Bug 632790 has been marked as a duplicate of this bug. ***