Re: gnome_vfs_make_uri_from_shell_arg problem/question



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().

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a fiendish Catholic gangster from the 'hood. She's a disco-crazy 
impetuous femme fatale who dreams of becoming Elvis. They fight crime! 




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