diff -Naur xmms-infopipe-1.1/src/infopipe.c xmms-infopipe-1.1-mod/src/infopipe.c --- xmms-infopipe-1.1/src/infopipe.c Sun Feb 11 19:03:40 2001 +++ xmms-infopipe-1.1-mod/src/infopipe.c Sat Apr 21 15:09:40 2001 @@ -76,6 +76,7 @@ The thread that we launch... */ pthread_t pipehandler; +char* fifo_file; /* The function that's called when the plugin is initialized, as specified @@ -84,6 +85,11 @@ pipe requests. */ void init_plugin(void) { + + /* handle multiple session names */ + fifo_file = malloc( 30 ); + sprintf( fifo_file, "%s.%d", FIFO_FILE_PFX, infopipe_gp.xmms_session ); + /* See if the file exists... */ if(access(FIFO_FILE,F_OK)==0) { diff -Naur xmms-infopipe-1.1/src/infopipe.h xmms-infopipe-1.1-mod/src/infopipe.h --- xmms-infopipe-1.1/src/infopipe.h Wed Jan 10 18:41:28 2001 +++ xmms-infopipe-1.1-mod/src/infopipe.h Sat Apr 21 15:09:40 2001 @@ -32,6 +32,7 @@ This should be defined in the configuration dialog, but we don't have one.. yet... */ -#define FIFO_FILE "/tmp/xmms-info" +#define FIFO_FILE fifo_file +#define FIFO_FILE_PFX "/tmp/xmms-info" #endif /* INFOPIPE_PLUGIN_INFOPIPE_H */