From: skeezix Date: Mon, 1 Mar 2010 04:34:02 +0000 (-0500) Subject: Reduce over-icon-generation due to multiapps X-Git-Tag: Release-2010-05/1~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=d0b07c4bea3e528ec57165fb2ea110ccf48e2ccc;hp=0b54a848982a5985c285e42ac5057745503d1a49 Reduce over-icon-generation due to multiapps --- diff --git a/apps/pndnotifyd.c b/apps/pndnotifyd.c index 07769e5..8294c8b 100644 --- a/apps/pndnotifyd.c +++ b/apps/pndnotifyd.c @@ -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 ) { diff --git a/lib/pnd_desktop.c b/lib/pnd_desktop.c index 51992c4..f3f4b10 100644 --- a/lib/pnd_desktop.c +++ b/lib/pnd_desktop.c @@ -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?