Reduce over-icon-generation due to multiapps
authorskeezix <skeezix@flotsam-vm.(none)>
Mon, 1 Mar 2010 04:34:02 +0000 (23:34 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Mon, 1 Mar 2010 04:34:02 +0000 (23:34 -0500)
apps/pndnotifyd.c
lib/pnd_desktop.c

index 07769e5..8294c8b 100644 (file)
@@ -661,7 +661,7 @@ void process_discoveries ( pnd_box_handle applist, char *emitdesktoppath, char *
     // check if icon already exists (from a previous extraction say); if so, we needn't
     // do it again
     char existingpath [ FILENAME_MAX ];
-    sprintf ( existingpath, "%s/%s#%u.png", emiticonpath, d -> unique_id, d -> subapp_number );
+    sprintf ( existingpath, "%s/%s.png", emiticonpath, d -> unique_id /*, d -> subapp_number */ );
 
     struct stat dirs;
     if ( stat ( existingpath, &dirs ) == 0 ) {
index 51992c4..f3f4b10 100644 (file)
@@ -200,7 +200,7 @@ unsigned char pnd_emit_icon ( char *targetpath, pnd_disco_t *p ) {
   }
 
   // determine filename for target
-  sprintf ( buffer, "%s/%s#%u.png", targetpath, p -> unique_id, p -> subapp_number ); // target
+  sprintf ( buffer, "%s/%s.png", targetpath, p -> unique_id /*, p -> subapp_number*/ ); // target
 
   /* first.. open the source file, by type of application:
    * are we looking through a pnd file or a dir?