From ee743394f6a38d3e72f2d96f0a9109293f092d0b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 21 Nov 2008 15:06:43 +0000 Subject: [PATCH] Monitor applications directory, not toplevel svn path=/trunk/; revision=71 --- src/shell-app-monitor.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c index cbe19281f..3a0ea9fa9 100644 --- a/src/shell-app-monitor.c +++ b/src/shell-app-monitor.c @@ -54,11 +54,15 @@ shell_app_monitor_init (ShellAppMonitor *self) ShellAppMonitorPrivate); for (iter = g_get_system_data_dirs (); *iter; iter++) { + char *app_path; GFile *dir; GFileMonitor *monitor; GError *error = NULL; - dir = g_file_new_for_path (*iter); + app_path = g_build_filename (*iter, "applications", NULL); + + dir = g_file_new_for_path (app_path); + g_free (app_path); monitor = g_file_monitor_directory (dir, 0, NULL, &error); if (!monitor) { g_warning ("failed to monitor %s", error->message);