Monitor applications directory, not toplevel
svn path=/trunk/; revision=71
This commit is contained in:
parent
7dba934b96
commit
ee743394f6
@ -54,11 +54,15 @@ shell_app_monitor_init (ShellAppMonitor *self)
|
|||||||
ShellAppMonitorPrivate);
|
ShellAppMonitorPrivate);
|
||||||
for (iter = g_get_system_data_dirs (); *iter; iter++)
|
for (iter = g_get_system_data_dirs (); *iter; iter++)
|
||||||
{
|
{
|
||||||
|
char *app_path;
|
||||||
GFile *dir;
|
GFile *dir;
|
||||||
GFileMonitor *monitor;
|
GFileMonitor *monitor;
|
||||||
GError *error = NULL;
|
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);
|
monitor = g_file_monitor_directory (dir, 0, NULL, &error);
|
||||||
if (!monitor) {
|
if (!monitor) {
|
||||||
g_warning ("failed to monitor %s", error->message);
|
g_warning ("failed to monitor %s", error->message);
|
||||||
|
Loading…
Reference in New Issue
Block a user