gnome-shell r71 - trunk/src
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-shell r71 - trunk/src
- Date: Fri, 21 Nov 2008 15:06:43 +0000 (UTC)
Author: walters
Date: Fri Nov 21 15:06:43 2008
New Revision: 71
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=71&view=rev
Log:
Monitor applications directory, not toplevel
Modified:
trunk/src/shell-app-monitor.c
Modified: trunk/src/shell-app-monitor.c
==============================================================================
--- trunk/src/shell-app-monitor.c (original)
+++ trunk/src/shell-app-monitor.c Fri Nov 21 15:06:43 2008
@@ -54,11 +54,15 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]