Created attachment 211201 [details] Testcase I'm noticing that watching a directory with inotify does not trigger events on hardlinks. In the attachments is an example which demonstrates this. It needs just to be compiled for example with "gcc -Wall -pedantic -o test test.c" and then executed. It prints "testfile1.txt" (the event on the normal file) while I would also expect it to print "testfile2.txt" (the hardlink).
See also https://bugzilla.gnome.org/show_bug.cgi?id=532815 They add G_FILE_MONITOR_WATCH_HARDLINKS flag and make workaround for case with hard links g_file_monitor_file can be used with G_FILE_MONITOR_WATCH_HARD_LINKS flag for get events from hard link. This works only for a file, not for whole directory. https://developer.gnome.org/gio/2.60/GFile.html