Re: VFS for legacy apps



On Fri, 2007-02-23 at 15:12 +0100, nf2 wrote:
> Alexander Larsson wrote:

> Perhaps application developers could be made aware of this mounting 
> issue by providing special functions in the gvfs api (to make 
> automouting possible, but in a controlled way).
> 
> if (!g_file_is_on_mounted_fs(GFile *f ...))
>     g_file_try_async_activate(GFile *f...);    // will pop up the login 
> dialog and mount
> 
> // ... work with the file ...

There is already a way to handle this. You get a not-mounted error, and
then you can call (always async) g_file_mount().

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a hate-fuelled coffee-fuelled card sharp who dotes on his loving old ma. 
She's a blind bisexual snake charmer who hides her beauty behind a pair of 
thick-framed spectacles. They fight crime! 




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