mmenu: separate /pandora/mmenu scan from pnd-scan per se .. so if .desktop is scan...
authorskeezix <skeezix@flotsam-vm.(none)>
Fri, 18 May 2012 01:30:57 +0000 (21:30 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Fri, 18 May 2012 01:30:57 +0000 (21:30 -0400)
then attempt to pnd-disco there (regardless of .pnd scan being disabled otherwise.) This will restore expected functionality from previous
(pre-.desktop scan) releases, and generalyl will not bother anyone (few use 'mmenu' specific apps anyway.) For people who do use it, it'll
start working again, though not quite as fast as a pure .desktop scan (since there are no .desktop's for the mmenu-specific pnds, by definition.)

minimenu/mmenu.c

index 919b509..fbfb67f 100644 (file)
@@ -555,10 +555,15 @@ void applications_scan ( void ) {
       }
     }
 
       }
     }
 
-    // aux apps?
+  } // app discovery on pnd-files?
+
+  // aux ("mmenu specific") apps?
+  if ( pnd_conf_get_as_char ( g_conf, "minimenu.aux_searchpath" ) ) {
     char *aux_apps = NULL;
     merge_apps = 0;
     char *aux_apps = NULL;
     merge_apps = 0;
+
     aux_apps = pnd_conf_get_as_char ( g_conf, "minimenu.aux_searchpath" );
     aux_apps = pnd_conf_get_as_char ( g_conf, "minimenu.aux_searchpath" );
+
     if ( aux_apps && aux_apps [ 0 ] ) {
       pnd_log ( pndn_debug, "Looking for pnd applications here: %s\n", aux_apps );
       merge_apps = pnd_disco_search ( aux_apps, NULL );
     if ( aux_apps && aux_apps [ 0 ] ) {
       pnd_log ( pndn_debug, "Looking for pnd applications here: %s\n", aux_apps );
       merge_apps = pnd_disco_search ( aux_apps, NULL );
@@ -595,7 +600,7 @@ void applications_scan ( void ) {
       }
     }
 
       }
     }
 
-  } // app discovery on pnd-files?
+  } // aux apps?
 
   // perform app discovery on .desktop files?
   //
 
   // perform app discovery on .desktop files?
   //