int main ( int argc, char *argv[] ) {
// behaviour
unsigned char scanonlaunch = 1;
- unsigned int interval_secs = 10;
+ unsigned int interval_secs = 5;
// misc
int i;
pnd_log ( pndn_rem, "No applications found in desktop search path\n" );
}
- pnd_log ( pndn_rem, "Scanning menu paths----------------------------\n" );
- if ( ! perform_discoveries ( menu_appspath, overridespath, menu_dotdesktoppath, menu_iconpath ) ) {
- pnd_log ( pndn_rem, "No applications found in menu search path\n" );
+ if ( menu_appspath && menu_dotdesktoppath && menu_iconpath ) {
+ pnd_log ( pndn_rem, "Scanning menu paths----------------------------\n" );
+ if ( ! perform_discoveries ( menu_appspath, overridespath, menu_dotdesktoppath, menu_iconpath ) ) {
+ pnd_log ( pndn_rem, "No applications found in menu search path\n" );
+ }
}
// if we've got a hup script located, lets invoke it
} // need to rediscover?
// lets not eat up all the CPU
- // should use an alarm or select() or something
+ // should use an alarm or select() or something -- I mean really, why aren't I putting interval_secs into
+ // the select() call above in pnd_notify_whatsitcalled()? -- but lets not break this right before release shall we
sleep ( interval_secs );
} // while
[autodiscovery]
# searchpath is a list of paths (colon separated) in which to look for PXML.xml or .pnd-file applications
-searchpath /media/*/pandora/apps:/usr/pandora/apps
+searchpath /media/*/pandora/apps:/media/*/pandora/desktop:/media/*/pandora/menu:/usr/pandora/apps
# notifypath is a list of paths to monitor; if anything in those paths changes, the searchpath is rescanned
# note that for each path chunk, all current subdirs of that path are also watched)
-notifypath /media:/media/*/pandora/apps:/usr/pandora/apps
+notifypath /media:/media/*/pandora/apps:/media/*/pandora/desktop:/media/*/pandora/menu:/usr/pandora/apps
# PXMLs may be overridden .. ie: overrides are a subset of PXML, where the values are copied over the full PXML
[overrides]
[menu]
searchpath /mnt/sd?/pandora/menu # path to depth-search for PXMLs and pnd-files
-dotdesktoppath /tmp/menu # path for pndnotifyd to spit .desktop files into
+dotdesktoppath /usr/share/applications # path for pndnotifyd to spit .desktop files into
iconpath /tmp # path for pndnotifyd to drop icons into (can be same as dotdesktoppath if WM permits)
[launcher]