After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613133 - gvfs support in open/save file dialog
gvfs support in open/save file dialog
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: import
unspecified
Other Linux
: Normal normal
: 0.98
Assigned To: Dia maintainers
Dia maintainers
: Panelfavoriter (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-03-17 10:51 UTC by frague
Modified: 2010-10-22 19:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A small step towards vfs support (1.70 KB, patch)
2010-07-30 19:56 UTC, Hans Breuer
none Details | Review

Description frague 2010-03-17 10:51:41 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
Comment 1 Hans Breuer 2010-03-17 20:03:26 UTC
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
Comment 2 frague 2010-03-18 23:03:19 UTC
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.
Comment 3 Hans Breuer 2010-07-30 19:56:32 UTC
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 :)
Comment 4 Hans Breuer 2010-08-22 12:47:54 UTC
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
Comment 5 Hans Breuer 2010-10-22 19:20:09 UTC
*** Bug 632790 has been marked as a duplicate of this bug. ***