From 7f19a036491cb27579daa674aaf7f5353d910709 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Tue, 29 Jan 2019 16:24:43 +0100 Subject: files-view: Use tracked directories for star We were using the xdg directories to check whether we can star a file or not, since the star feature only works on directories that are tracked by tracker. Tracker is usually shipped in distributions tracking the xdg-directories, so we check that as a stop gap solution for 3.30 since we didn't have time to actually query what directories tracker is tracking and match that. This work makes it so that we show the star action on tracked directories. --- src/nautilus-global-preferences.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nautilus-global-preferences.c') diff --git a/src/nautilus-global-preferences.c b/src/nautilus-global-preferences.c index 8fc9baadf..0e7e011b6 100644 --- a/src/nautilus-global-preferences.c +++ b/src/nautilus-global-preferences.c @@ -41,6 +41,7 @@ GSettings *gtk_filechooser_preferences; GSettings *gnome_lockdown_preferences; GSettings *gnome_background_preferences; GSettings *gnome_interface_preferences; +GSettings *tracker_preferences; void nautilus_global_preferences_init (void) @@ -65,4 +66,5 @@ nautilus_global_preferences_init (void) gnome_lockdown_preferences = g_settings_new ("org.gnome.desktop.lockdown"); gnome_background_preferences = g_settings_new ("org.gnome.desktop.background"); gnome_interface_preferences = g_settings_new ("org.gnome.desktop.interface"); + tracker_preferences = g_settings_new ("org.freedesktop.Tracker.Miner.Files"); } -- cgit v1.2.1