Bug#348227: Please package python2.4-gamin

Josselin Mouette joss at debian.org
Wed Jul 19 08:59:23 UTC 2006


Le mardi 18 juillet 2006 à 20:29 +0300, Timo Savola a écrit :
> On Tue, 2006-07-18 at 14:16 +0200, Loïc Minier wrote:
> 
> >  We dropped all references to gamin from the GNOME packages, and we
> >  would like to get rid of the gamin package altogether for various
> >  reasons (mainly: not supported upstream anymore, and some bugs).
> > 
> >  I'm afraid you can only hope that another team (perhaps KDE) has some
> >  use of gamin and wishes to maintain it.
> 
> Is FAM (or some new thing) preferred over gamin?  What do GNOME apps use
> to get notifications about filesystem changes?  I'd like to migrate my
> application to a better technology if there is one.

The best is to use directly the GnomeVFS API. Unfortunately it isn't
documented, but here is how it looks like:

typedef enum {
  GNOME_VFS_MONITOR_FILE,
  GNOME_VFS_MONITOR_DIRECTORY
} GnomeVFSMonitorType;

typedef void (* GnomeVFSMonitorCallback) (GnomeVFSMonitorHandle *handle,
                                          const gchar *monitor_uri,
                                          const gchar *info_uri,
                                          GnomeVFSMonitorEventType event_type,
                                          gpointer user_data);


GnomeVFSResult gnome_vfs_monitor_add (GnomeVFSMonitorHandle **handle,
                                      const gchar *text_uri,
                                      GnomeVFSMonitorType monitor_type,
                                      GnomeVFSMonitorCallback callback,
                                      gpointer user_data);

GnomeVFSResult gnome_vfs_monitor_cancel (GnomeVFSMonitorHandle *handle);

It is straightforward and uses the best available underlying method. On
Linux, it uses inotify and falls back to FAM for remote mounts.
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette at ens-lyon.org
`. `'                        joss at debian.org
   `-  Debian GNU/Linux -- The power of freedom





More information about the Pkg-gnome-maintainers mailing list