mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-24 11:55:43 +00:00
fixed infopipe multiple conky issues
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@476 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
9fb5e80a3e
commit
7c5d4fab42
2
README
2
README
@ -672,7 +672,7 @@ VARIABLES
|
||||
|
||||
|
||||
infopipe_status
|
||||
XMMS/BMP InfoPipe status (Playing/Paused/Stopped)
|
||||
XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running)
|
||||
|
||||
|
||||
infopipe_time
|
||||
|
@ -604,7 +604,7 @@ XMMS/BMP InfoPipe protocol
|
||||
|
||||
.TP
|
||||
\fBinfopipe_status\fR
|
||||
XMMS/BMP InfoPipe status (Playing/Paused/Stopped)
|
||||
XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running)
|
||||
|
||||
.TP
|
||||
\fBinfopipe_time\fR
|
||||
|
@ -704,7 +704,7 @@
|
||||
<command><option>infopipe_status</option></command>
|
||||
</term>
|
||||
<listitem>
|
||||
XMMS/BMP InfoPipe status (Playing/Paused/Stopped)
|
||||
XMMS/BMP InfoPipe status (Playing/Paused/Stopped/Not running)
|
||||
<para></para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
@ -84,9 +84,10 @@ void *infopipe_thread_func(void *pvoid)
|
||||
for (;;) { /* convenience loop so we can break below */
|
||||
|
||||
memset(buf,0,sizeof(buf));
|
||||
memset(items,0,sizeof(items));
|
||||
|
||||
if ((fd=open(INFOPIPE_NAMED_PIPE, O_RDONLY | O_NONBLOCK)) < 0) {
|
||||
memset(items,0,sizeof(items));
|
||||
strcpy(items[INFOPIPE_STATUS],"Not running");
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user