GNOME Bugzilla – Bug 400850
Should use URIs instead of local paths
Last modified: 2018-03-26 15:01:38 UTC
In this age of the Internet and the Networked Computer we still use local file paths to reference projects. This is rather limiting, if one considers that almost all users have access to a network or the internet these days. Now, of course we don't yet have the code to load and save files over a network, but using URIs now would ease the architectural changes that would come later.
Note, this internet-aware design is meant to be used in conjunction with GtkFileChooser, which has support for browsing networks.
I'm not sure what is the state of the union wrt remote files in gnome, I think this needs dbus or something. I think we can agree that we'll only support remote URI filenames through a generic gtk+/glib api.
Right now, remote file handling would require gnome-vfs [1]. Nobody seems to like gnome-vfs very much though, and there is talk of moving it into glib [2]. So yes, I agree, it would be best to wait until glib has support for file system abstraction. References: 1. http://developer.gnome.org/doc/API/2.0/gnome-vfs-2.0/ 2. http://mail.gnome.org/archives/gnome-vfs-list/2006-September/msg00023.html
We are much closer to implementing this now. Today I made Glade use GtkApplication and its now a single instance app, loading files come in the form of a GFile which can be a remote URI. However some modifications need to be made to GladeProject in order to support editing a file that has no local canonical path name. (I suppose loading a remote file from URI can be done, then we want to maintain the file's short name and have it in read-only mode, then we can support save-as to save the modified file locally somewhere).
*** Bug 584979 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/12.