Re: Opening files that start with %
- From: Bernhard Herzog <bh intevation de>
- To: <gnome-list gnome org>, <gnome-devel-list gnome org>
- Subject: Re: Opening files that start with %
- Date: 24 Jul 2002 11:48:46 +0200
"chen.shengqi" <chen shengqi connet com tw> writes:
> ----- Original Message -----
> From: <jgotts linuxsavvy com>
[...]
> > In message <y5wn0so94yt fsf icon devel redhat com>, Havoc Pennington writes:
> >
> > >Shane OConnor - Sun Ireland <Shane Oconnor Sun COM> writes:
> >
> > >> It's just been noticed that any file that starts with the '%'
> > >> character will not open in nautilus, gedit or netscape. As all the
> > >> gconf xml files start with the '%' character I was wondering if this
> > >> was a deliberate thing?
> >
> > >No, it's a bug.
> >
> > Looks like a bug in gnome-vfs:
> >
[rearranging a bit to retain the example]
> > GnomeVFSResult result;
> > GnomeVFSFileInfo *info;
> >
> > result = gnome_vfs_get_file_info("%gconf.xml", info,
> > (GNOME_VFS_FILE_INFO_GET_MIME_TYPE | GNOME_VFS_FILE_INFO_FOLLOW_LINKS));
> >
> > fails. gnome_vfs_get_file_info() does two things:
> I didnot tested it, but I think if you write "%gconf.xml" as
> "\%gconf.xml" , maybe it can work, just put a '\' before '%'.
Shuldn't that be "%25gconf.xml"? According to the docs
gnome_vfs_get_file_info takes a URI and % is used for hex-escapes in a
URI. So it's not a bug in gnome-vfs but in the applications that don't
quote local filenames properly.
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]