From 5a8964ced91c3fa79609cb293e9d346bb6cc848b Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Wed, 24 Feb 2021 16:15:05 +0100 Subject: [PATCH] Quickfix against automount hammering v2 do not monitor shortcuts. if shortcuts are set thunar will remount automount pathes everytime they get expired by autmount -> so they will never really expire even if totally unused all automount pathes in bookmarks are always mounted. this fix lets automount decide when a path is not needed. --- thunar/thunar-shortcuts-model.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c index 9f6848038..abba89ad1 100644 --- a/thunar/thunar-shortcuts-model.c +++ b/thunar/thunar-shortcuts-model.c @@ -1216,6 +1216,7 @@ thunar_shortcuts_model_add_shortcut_with_path (ThunarShortcutsModel *model, _thunar_return_if_fail (THUNAR_IS_SHORTCUTS_MODEL (model)); _thunar_return_if_fail (shortcut->file == NULL || THUNAR_IS_FILE (shortcut->file)); +#if 0 /* we want to stay informed about changes to the file */ if (G_LIKELY (shortcut->file != NULL)) { @@ -1228,6 +1229,7 @@ thunar_shortcuts_model_add_shortcut_with_path (ThunarShortcutsModel *model, g_signal_connect (G_OBJECT (shortcut->file), "destroy", G_CALLBACK (thunar_shortcuts_model_file_destroy), model); } +#endif if (path == NULL) { @@ -1741,6 +1743,7 @@ static void thunar_shortcut_free (ThunarShortcut *shortcut, ThunarShortcutsModel *model) { +#if 0 if (G_LIKELY (shortcut->file != NULL)) { /* drop the file watch */ @@ -1752,6 +1755,7 @@ thunar_shortcut_free (ThunarShortcut *shortcut, 0, NULL, NULL, model); g_object_unref (shortcut->file); } +#endif if (G_LIKELY (shortcut->device != NULL)) g_object_unref (shortcut->device);