Bonjour à tous,
cela fait plusieurs heure que je cherche à afficher la pochette des albums dans conky avec rhythmobox mais je n’y arrive pas.
J’ai suivi ce tuto : doc.ubuntu-fr.org/conky_scripts_ … ette_du_cd
Voici mon script :[code]#!/bin/bash
album=$(rhythmbox-client --print-playing-format “%ta - %at”)
fichier="$HOME/.cache/rhythmbox/covers/$album.jpg"
if test -s "$fichier"
then
ln -sf “$fichier” “$HOME/.conky_cover.jpg”
else
if test -s "$HOME/.conky_cover.jpg"
then
rm "$HOME/.conky_cover.jpg"
fi
fi[/code]
Je l’ai exécuter avec la commande chmod +x
Et voici mon conky [quote]${color orange}EN ÉCOUTE $color${hr 2}
${if_running rhythmbox}Artiste : ${tab 20}${color ffffff}${exec rhythmbox-client --print-playing-format “%ta”}$color
Titre : ${tab 20}${color ffffff}${exec rhythmbox-client --print-playing-format “%tt”}$color
Album : ${tab 20}${color ffffff}${exec rhythmbox-client --print-playing-format “%at”}$color
Piste : ${tab 20}${color ffffff}${exec rhythmbox-client --print-playing-format “%tn”}$color
Année : ${tab 20}${color ffffff}${exec rhythmbox-client --print-playing-format “%ay”}$color
Durée : ${tab 20}${color ffffff}${exec rhythmbox-client --print-playing-format “%te / %td”}${color white}${exec /home/jerome/Script/pochette.sh}${image ~/.conky_cover.jpg -n -p 20,100 -s 80x80}${else}Rhythmbox${color ffffff} n’est pas ouvert$endif[/quote]
Mais il ne m’affiche rien.
Lorsque je tape "conky -c /home/jerome/.conkyrc il me donne ceci : [quote]jerome@debian:~$ conky -c /home/jerome/.conkyrc
Conky: /home/jerome/.conkyrc: 25: config file error
Conky: /home/jerome/.conkyrc: 20: config file error
Conky: desktop window (140002d) is subwindow of root window (a6)
Conky: window type - normal
Conky: drawing to created window (0x4400002)
Conky: drawing to double buffer
Conky: Unable to load image ‘/home/jerome/.conky_cover.jpg’
[/quote]
Merci pour l’aide.