and if mmenu wakes up first, then the lockfile is not yet present and mmenu sees minimal changes..
so if we make mmenu wait a second or two then almost certainly pndnotifyd should have awoken and
set up its lockfile. (Another option is to tweak pndnotifyd to wake up more often, but I prefer
not to bother that application as it is omnipresent .. lets avoid introducing cpu leach.)
}
if ( watch_dbus || watch_inotify ) {
+
pnd_log ( pndn_debug, "dbusnotify detected SD event\n" );
+
+ // sometimes mmenu notices the SD event before pndnotifyd does, since pndnotifyd
+ // is coded not to react too quickly (in the event of multiple spammed events or
+ // other weird stuff that was seen when it was being written.) As such, lets wait
+ // a second to give pndnotifyd a chance to have awoken..
+ SDL_Delay ( 1500 ); // in 1/1000th of seconds
+
+ // kick off a rescan
applications_free();
applications_scan();