From d0b07c4bea3e528ec57165fb2ea110ccf48e2ccc Mon Sep 17 00:00:00 2001 From: skeezix Date: Sun, 28 Feb 2010 23:34:02 -0500 Subject: [PATCH] Reduce over-icon-generation due to multiapps --- apps/pndnotifyd.c | 2 +- lib/pnd_desktop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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? -- 2.39.2