Re: PATCH: use local path when dropping files onto icons



On Tue, 18 Jun 2002, Frank Worsley wrote:

> > -                       path = gnome_vfs_uri_get_path (uri);
> > Why didn't this work?
> 
> Because it returns the path for whatever method was used. So for example
> if uri is "applications:///help.desktop", the path will be
> "/help.desktop". Also it didn't remove escaped characters, so if you had
> a space in the path it would have been "/the%20path". 
> 
> The problem is also that gnome_vfs_uri_is_local returns true whenever
> the file is on a local file system, even when gnomevfs has no way to
> actually determine the local path. There should really be two new
> functions, gnome_vfs_uri_has_local_path and
> gnome_vfs_uri_get_local_path. It also quite sucks that gnome-vfs can't
> determine the real local path for applications:/// uris.

Yeah, i know this, but after you changed it to not use _is_local it would 
work. Anyway, it's not important, i was just wondering if there was 
something i missed.
 
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a time-tossed hunchbacked farmboy whom everyone believes is mad. She's a 
cynical impetuous traffic cop with an incredible destiny. They fight crime! 




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