Re: Opening files that start with %



----- Original Message ----- 
From: <jgotts linuxsavvy com>
To: "Havoc Pennington" <hp redhat com>
Cc: <gnome-list gnome org>; <gnome-devel-list gnome org>
Sent: Wednesday, July 24, 2002 11:00 AM
Subject: Re: Opening files that start with % 


> 
> 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:
> 

I didnot tested it, but I think if you write "%gconf.xml" as "\%gconf.xml" , maybe it can work, just put a '\' before '%'.


> 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:
> 
> 1) gnome_vfs_uri_new() "succeeds"
> 2) gnome_vfs_get_file_info_uri() fails with GNOME_VFS_ERROR_INVALID_URI.
> 
> Anybody who wants to debug this thing would be advised to print out uri->text
> between (1) and (2) above.
> 
> John
> 
> -- 
> John GOTTS <jgotts linuxsavvy com>  http://linuxsavvy.com/staff/jgotts
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list


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