.desktop for 'info' doesn't need to change clockrate (likely)
authorskeezix <skeezix@flotsam-vm.(none)>
Wed, 29 Sep 2010 19:28:04 +0000 (15:28 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Wed, 29 Sep 2010 19:28:04 +0000 (15:28 -0400)
lib/pnd_apps.c

index e90ea61..c5eec2f 100644 (file)
@@ -40,6 +40,10 @@ unsigned char pnd_apps_exec_disco ( char *pndrun, pnd_disco_t *app,
     return ( 0 );
   }
 
     return ( 0 );
   }
 
+  if ( options & PND_EXEC_OPTION_INFO && ! reserved ) {
+    return ( 0 );
+  }
+
   // determine path to pnd-file
   sprintf ( fullpath, "%s/%s", app -> object_path, app -> object_filename );
 
   // determine path to pnd-file
   sprintf ( fullpath, "%s/%s", app -> object_path, app -> object_filename );
 
@@ -79,9 +83,14 @@ unsigned char pnd_apps_exec_disco ( char *pndrun, pnd_disco_t *app,
     argv [ f++ ] = "-b";
     argv [ f++ ] = app -> unique_id;
   }
     argv [ f++ ] = "-b";
     argv [ f++ ] = app -> unique_id;
   }
-  if ( app -> clockspeed ) {
-    argv [ f++ ] = "-c";
-    argv [ f++ ] = app -> clockspeed;
+
+  if ( options & PND_EXEC_OPTION_INFO ) {
+    // we don't need to overclock for showing info :) do we? crazy active .js pages maybe?
+  } else {
+    if ( app -> clockspeed ) {
+      argv [ f++ ] = "-c";
+      argv [ f++ ] = app -> clockspeed;
+    }
   }
 
   // skip -a (arguments) for now
   }
 
   // skip -a (arguments) for now