Re: gnome_vfs_make_uri_from_shell_arg problem/question

On Mon, 06 Mar 2006 10:20:15 +0100
Alexander Larsson <alexl redhat com> wrote:

> On Sun, 2006-03-05 at 18:50 -0700, Todd Courtnage wrote:
> > 
> > 
> > It appears that gnome_vfs_make_uri_from_shell_arg is not returning
> > what it should, or that I don't know/understand how to use it
> > properly (which is the more likely case.  :-) 
> You're calling it like this:
> gnome_vfs_make_uri_from_shell_arg("test.doc") which assumes the
> filename is relative to the current directory, so the result will be
> "file://$cwd/test.doc". There is no way it can magically know that the
> file is in another directory. You should take a look at
> gnome_vfs_uri_append_file_name().

Just as I figured, I didn't know how to use it properly.  :-)

Thanks, Alexander.

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