In a vain attempt to try and reduce power consumption I've observed that unity-scope-loader is polling away merrily every 4 seconds. Running strace on the process shows:
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3991) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {12721, 124500091}) = 0
inotify_add_watch(8, "/home/phablet/.config/menus/unity-lens-applications-merged", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
inotify_add_watch(8, "/etc/xdg/menus/unity-lens-applications-merged", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
inotify_add_watch(8, "/home/phablet/.config/menus", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
clock_gettime(CLOCK_MONOTONIC, {12721, 127368742}) = 0
poll([{fd=9, events=POLLIN}, {fd=8, events=POLLIN}], 2, 3992) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {12725, 125448015}) = 0
inotify_add_watch(8, "/home/phablet/.config/menus/unity-lens-applications-merged", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
inotify_add_watch(8, "/etc/xdg/menus/unity-lens-applications-merged", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
inotify_add_watch(8, "/home/phablet/.config/menus", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory)
clock_gettime(CLOCK_MONOTONIC, {12725, 128316521}) = 0
add infinitum..
Is this really necessary to poll so frequently? And also there are a bunch of failed inotify_add_watch() calls that are failing. Is that expected too?
As it is, the poll() is blocked on fd 9 and 8, so is a timeout of 4 seconds really required?
Seems to be coming from deep inside libgnome-menus...