我尝试使用 ${if_existing ..} 来检查文件是否存在于 conky 中,如下所示:
${if_existing /home/stanislav/.cache/yandexweather/bkn_n.png}YES \
${else}NO
${endif}\
这非常有效。但是,如何将 ${if_existing ..} 语句与另一个命令的输出一起使用?例如:
${if_existing echo "~/.cache/yandexweather/"$(python ~/.cache/yandexweather/yw_script.py -image_0)}YES \
${else}NO
${endif}\
后者不起作用