Notify frameworks in Xfce and Thunar
Nick Schermer
nickschermer at gmail.com
Fri Jul 10 22:24:52 CEST 2009
2009/7/10 Brian J. Tarricone <brian at tarricone.org>:
> On 2009/07/10 07:02, Pavol Rusnak wrote:
>>
>> My question is: have you thought about using GIO monitoring API?
>
> From what I understand, there is no GIO monitoring API. Or, rather,
> GFileMonitor exists, but doesn't really do much useful without a backend.
> Gvfs provides a backend for it, but that requires a couple gnome
> dependencies at this point, so people may not be too happy to install it on
> an Xfce desktop.
This is not true, gio also implements a local gvfs, which features inotify. This
vfs backend is registered by default so if you load no special backends,
it will use this local file vfs, so g_file_new_for_path() works. You could also
use something like this (more as a prove):
gfile = g_vfs_get_file_for_path (g_vfs_get_local (), "/some/path/to/file"));
gmonitor = g_file_monitor_file (gfile, ....);
Nick
More information about the Xfce4-dev
mailing list