Re: GtkFilesystemGnomeVFS and authentication



On Tue, 2004-03-16 at 21:37, Federico Mena Quintero wrote:
> Hi, Alex,
> 
> These are some disconnected thoughts on GtkFileSystemGnomeVFS and
> authentication.
> 
> * The file system backend does nothing with respect to authentication
> right now.  Should we blindly call gnome_authentication_manager_init()
> when the module is loaded, or something like that?
> 
> * If we do that, it looks like g_a_m_init() will overwrite whatever
> callbacks were in place at the time it is called.  I have no idea of how
> gnome-keyring works.  Are all programs supposed to just use that, or is
> there a reason why they would want to override it and use auth callbacks
> of their own?

For instance, the mozilla gnome-vfs backend
(http://lxr.mozilla.org/seamonkey/source/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp) uses its own authentication callbacks, so if they ever started to use the new file selector this would break.

I'm not sure what to do here...

Maybe we could initialize the standard callbacks if there are no current
standard callbacks? (Of course, there is no current API to check this,
but that could be added.)

Opinions?

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an uncontrollable vegetarian hairdresser plagued by the memory of his 
family's brutal murder. She's a plucky cigar-chomping college professor in the 
wrong place at the wrong time. They fight crime! 




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