file monitor on the root directory
- From: Boris HUISGEN <bhuisgen hbis fr>
 
- To: gtk-app-devel-list gnome org
 
- Subject: file monitor on the root directory
 
- Date: Wed, 21 Mar 2012 00:39:31 +0100
 
Hello,
I'm trying to do a file monitor on the root directory /.
My current code is :
  file = g_file_new_for_path(path);
  monitor = g_file_monitor(file, G_FILE_MONITOR_NONE, NULL, &error);
  g_object_unref(file);
  if (error)
    {
      g_error_free(error);
      error = NULL;
      return FALSE;
    }
But with "/" for path string, no events are catched. With "//", it
works. Is it normal ?
Thanks for your help.
-- 
Boris HUISGEN
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]