By default gamin should work without needing any configuration, but
sometimes using the kernel notification APIs doesn't work or lead to troubles
(for example when trying to unmount device). By default gamin revert to using
polling for all paths matching /mnt/* or /media/*
on Linux. This may be overriden or extended by the config file
$HOME/.gaminrc . Here is an example of such a configuration
file: # configuration for gamin
# Can be used to override the default behaviour.
# notify filepath(s) : indicate to use kernel notification
# poll filepath(s) : indicate to use polling instead
notify /mnt/local* /mnt/pictures*
poll /temp/* The configuration file accepts only 2 types of command: - notify : to express that kernel monitoring should be used for matching
paths
- poll: to express that polling should be used for matching paths
When checking a path to guess whether polling or kernel notification
should be used, gamin checks first the user provided rules in their
declaration order within the configuration file and then check the predefined
rules. This way the first declaration for /mnt/local* in the
example override the default one for /mnt/* . Caveat: separators in the config file should be spaces, not
tabs. Daniel Veillard |