GNOME Bugzilla – Bug 344403
Edit icons disabled on a NFS mounted Photos directory
Last modified: 2007-02-14 16:59:11 UTC
After I imported some photos to my NFS mounted Photos directory, I wanted to edit them a bit. But the edit icons in Edit view were disabled. I could "Edit -> Adjust color" as well as "Edit -> Sharpen" though. If I linked the photo, instead of copy it, the edit icons were enabled. Checking the PhotoView.cs gives me the following code around line 148 Gnome.Vfs.Uri vfs = new Gnome.Vfs.Uri (photo_view.Item.Current.DefaultVersionUri.ToString ()); valid = vfs.IsLocal; Seems like valid will always be false for a NFS mounted home directory. Or?
Just checked the value of vfs.IsLocal and it is False for the NFS mounted home directory. My fstab looks like this: mackie:/home/bengt /home/bengt nfs rsize=8192,wsize=8192,timeo=14,intr
version 1.88 of PhotoView.cs introduced the "valid=vfs.IsLocal" code.
Still a problem with 0.2.0
The editing check is based on the gnome-vfs setting for a local file, I suppose we could check if the type of the uri is file: instead of checking if it it local.
as for now, f-spot only supports file:// uris... so valid should be always true and we'll rethink that validity concept when f-spot will be able to deal with real uris everywhere... as usual, it's only my humble opinion...
fixed in r2953