
私は、を使用して conkyForecastWU で conky をセットアップしようとしています.conkyForecast.template
。次のように予測コマンドを に含めます.conkyrc
。
${execpi 1800 conkyForecastWU --template=~/.conkyForecast.template}
しかし、起動すると、conky
次のエラーが毎秒表示されます。
Conky: Unable to load image '/tmp/'
上記の -コマンドは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/
しかし、何が問題なのでしょうか? 出力を読み取るときにバッファリングの問題があるようですが、256 バイトを超える値を読み取るように conky に指示するにはどうすればよいでしょうか?
答え1
解決策はここに見つかりました:https://unix.stackexchange.com/questions/14785/conky-buffer-too-small
設定後
text_buffer_size 1024
問題は解決しました。