
.NET Framework를 사용하여 conkyForecastWU로 conky를 설정하려고 합니다 .conkyForecast.template
. 내 파일에는 다음과 같은 예측 명령이 포함되어 있습니다 .conkyrc
.
${execpi 1800 conkyForecastWU --template=~/.conkyForecast.template}
하지만 시작하면 conky
매초마다 다음과 같은 오류가 나타납니다.
Conky: Unable to load image '/tmp/'
위의 -command conkyForecastWU
는 다음 출력을 생성합니다.
${font Raleway-10:weight=thin}
${image /tmp/.conkyForecastWU-WI-Clear.gif -p 40,1000 -s 60x60}
${image /tmp/.conkyForecastWU-WI-Chance-Of-Rain.gif -p 123,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 177,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 231,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Chance-Of-Rain.gif -p 285,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Mostly-Cloudy.gif -p 339,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 393,1010 -s 40x40}
첫 번째 줄 끝에 공백을 추가하면 오류 메시지가 로 끝나므로 '/tmp'
conky는 출력에서 정확히 256바이트 길이인 이 부분만 읽습니다.
${font Raleway-10:weight=thin}
${image /tmp/.conkyForecastWU-WI-Clear.gif -p 40,1000 -s 60x60}
${image /tmp/.conkyForecastWU-WI-Chance-Of-Rain.gif -p 123,1010 -s 40x40}
${image /tmp/.conkyForecastWU-WI-Partly-Cloudy.gif -p 177,1010 -s 40x40}
${image /tmp/
그런데 무슨 문제가 있나요? 출력을 읽을 때 버퍼링 문제인 것 같습니다. 그런데 conky에게 256바이트 이상을 읽도록 어떻게 알릴 수 있나요?
답변1
여기에서 해결책을 찾았습니다.https://unix.stackexchange.com/questions/14785/conky-buffer-too-small
설정 후
text_buffer_size 1024
문제가 해결되었습니다.