From 18fcbb01e23c1585691389e4478117a44f5bbf90 Mon Sep 17 00:00:00 2001 From: - - Date: Thu, 11 May 2023 17:09:23 +0200 Subject: [PATCH] Monitor changes in hardlinked files --- zathura/file-monitor-glib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura/file-monitor-glib.c b/zathura/file-monitor-glib.c index 10303c4..468c556 100644 --- a/zathura/file-monitor-glib.c +++ b/zathura/file-monitor-glib.c @@ -52,7 +52,7 @@ start(ZathuraFileMonitor* file_monitor) } glib_file_monitor->monitor = g_file_monitor_file( - glib_file_monitor->file, G_FILE_MONITOR_NONE, NULL, NULL); + glib_file_monitor->file, G_FILE_MONITOR_WATCH_HARD_LINKS, NULL, NULL); if (glib_file_monitor->monitor != NULL) { g_signal_connect_object(G_OBJECT(glib_file_monitor->monitor), "changed", G_CALLBACK(file_changed), glib_file_monitor, 0);