From 94ee29d475de45c2d20f399edea283ebb50aa3f8 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c index 525eba9b..e335c986 100644 --- a/thunar/thunar-shortcuts-model.c +++ b/thunar/thunar-shortcuts-model.c @@ -1229,12 +1229,15 @@ 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)) { /* watch the trash for changes */ if (thunar_g_file_is_trash (thunar_file_get_file (shortcut->file))) thunar_file_watch (shortcut->file); } +#endif if (path == NULL) { @@ -1748,6 +1751,7 @@ static void thunar_shortcut_free (ThunarShortcut *shortcut, ThunarShortcutsModel *model) { +#if 0 if (G_LIKELY (shortcut->file != NULL)) { /* drop the file watch on trash */ @@ -1756,6 +1760,7 @@ thunar_shortcut_free (ThunarShortcut *shortcut, g_object_unref (shortcut->file); } +#endif if (G_LIKELY (shortcut->device != NULL)) g_object_unref (shortcut->device);