Re: GVFS and http:// schemes



On Tue, 2008-03-25 at 14:21 +0100, Alexander Larsson wrote:
> On Fri, 2008-03-21 at 20:52 +0000, Neil Williams wrote:
> > 
> > I want the app to be able to open files like:
> > http://ftp.debian.org/debian/pool/main/g/gpe-tetris/gpe-tetris_0.6.4-1_i386.deb
> > from the command line - as GnomeVFS did. (deb-gview is a GNOME viewer
> > for .deb files, it reads the archives, decompresses the files within the
> > package and allows the user to view any .deb and any file within
> > the .deb without worrying about the architecture of the file. It's
> > useful for cross-builders and architecture porters.) So the process
> > involves passing data from a GInputStream to libarchive. It works for
> > local files.
> > 
> > What am I missing?
> 
> In what way does it fail? 

$ gvfs-info http://www.google.com
Error getting info: The specified location is not supported

> Generally you should only need to call
> g_file_new_from_commandline() and then g_file_read() to read the file.

I found the cause of the problem in the meantime (with thanks to the
Debian maintainer of gvfs):
http://bugzilla.gnome.org/show_bug.cgi?id=523911

I managed to complete the port and deb-gview (AFAICT) is the first
package to use gvfs/gio in Debian unstable - others are pending in
experimental.

> Try gvfs-cat and looking at the source of that for hints:

It would be handy if the GIO/GVFS docs described the command line tools
that can be used to ensure that GVfs itself is actually working before
suspecting problems with the new code.

> However, http is automounting, so that should work as is.

I suspected as much. Thanks.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/


Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]