Now I get no cover art. I used the latest deb and sudo cp to get that .py into /usr/share/conkyrhythmbox, I then logged out and back in, that was all.
When rhythmbox gets the coverart it seems to take it from the folder of the current song, so long as it matches the artist and album in the metadata in the music file.
If it helps here is my conky, it is 1.8.0 (I think)
rhythmbox-ca.shCode:# Create own window instead of using desktop (required in nautilus) own_window no own_window_hints undecorated,below,skip_taskbar background no maximum_width 300 #### ## Default sizes # default_bar_size 200 6 #### ## Force images to redraw when they change. # imlib_cache_size 0 # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # fiddle with window use_spacer right use_xft yes # Update interval in seconds update_interval 1.0 # Minimum size of text area minimum_size 300 5 # Draw shades? draw_shades yes # Text stuff draw_outline no # amplifies text if yes draw_borders no uppercase no # set to yes if you want all text to be in uppercase # Stippled borders? stippled_borders 8 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors, grey90 == #e5e5e5 default_color white default_shade_color black default_outline_color white own_window_colour brown own_window_transparent yes # Text alignment, other possible values are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right # Gap between borders of screen and text gap_x 960 gap_y 40 # stuff after 'TEXT' will be formatted on screen override_utf8_locale xftfont Terminus:size=8 xftalpha 0.8 #lua_load /home/linus/scripts/.draw_bg.lua #lua_load /home/vehemoth/.conky/bargraph_small.lua ##lua_load /home/vehemoth/.conky/bargraph_small2.lua #lua_draw_hook_pre draw_bg ##lua_draw_hook_post main_bars TEXT ${image /home/vehemoth/.conky/debian.png -p 25,5} ${voffset -6}${offset 205}${color d60651}${font Terminus:size=30}6.0 ${voffset -25}${offset 60}${color grey}${font Terminus:size=8.3}THE UNIVERSAL OPERATING SYSTEM ${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}System${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} ${color slate grey}Kern:${color }$kernel ${voffset -13}${offset 150}${color slate grey}UpTime: ${color }$uptime ${color slate grey}Domain Name:${color }$nodename ${voffset -13}${offset 150}${color slate grey}SysName: ${color }$sysname ${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}Processors${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} ${color slate grey}CPU:${color } $cpu% ${voffset -13}${offset 80}${color}${freq}MHz ${voffset -13}${offset 136}${color slate grey}Core 1:${color }${cpu cpu1}% ${voffset -13}${offset 220}${color slate grey}Core 2:${color }${cpu cpu2}% ${cpugraph 20,130 000000 ffffff} ${color }${cpugraph cpu1 20,78 000000 ffffff} ${color }${cpugraph cpu2 20,78 000000 ffffff} ${color slate grey}Processes:${color }$processes ${voffset -13}${offset 130}${color slate grey}Running:${color }$running_processes ${voffset -13}${offset 220}${color slate grey}Threads:${color }$running_threads ${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}Memory${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} ${color slate grey}MEM: ${color } $memperc% $mem/$memmax ${membar 3,100} ${voffset -26}${offset 164}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax ${offset 164}${swapbar 3,100} ${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}HDD${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} ${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /} ${fs_bar 3,100 /} ${voffset -26}${offset 164}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home} ${offset 164}${fs_bar 3,100 /home} ${color slate grey}Disk I/O:${color }${diskio} ${voffset -13}${offset 136}${color slate grey}I/R:${color }${diskio_read} ${voffset -13}${offset 220}${color slate grey}O/W:${color }${diskio_write} ${diskiograph 20,130 000000 ffffff} ${diskiograph_read 20,78 000000 ffffff} ${diskiograph_write 20,78 000000 ffffff} ${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}Top Processes${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} ${color slate grey}Highest CPU: ${color ddaa00} ${top name 1} ${color lightgrey} ${top name 2} ${color lightgrey} ${top name 3} ${color lightgrey} ${top name 4} ${voffset -52}${offset 105}${color ddaa00}${top cpu 1} ${offset 105}${color lightgrey}${top cpu 2} ${offset 105}${color lightgrey}${top cpu 3} ${offset 105}${color lightgrey}${top cpu 4} ${voffset -78}${offset 145}${color slate grey}Highest MEM: ${offset 145}${color ddaa00} ${top_mem name 1} ${offset 145}${color lightgrey} ${top_mem name 2} ${offset 145}${color lightgrey} ${top_mem name 3} ${offset 145}${color lightgrey} ${top_mem name 4} ${voffset -52}${offset 270}${color ddaa00}${top_mem mem 1} ${offset 270}${color lightgrey}${top_mem mem 2} ${offset 270}${color lightgrey}${top_mem mem 3} ${offset 270}${color lightgrey}${top_mem mem 4} ${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}Network${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} ${color slate grey}Internal IP: ${color}${addr eth0} ${voffset -13}${offset 152}${color slate grey}External IP: ${color }${execi 3600 /home/vehemoth/.conky/wan.sh} ${color slate grey}Up: ${color }${upspeed eth0} ${voffset -13}${offset 152}${color slate grey}Down: ${color }${downspeed eth0} ${color}${upspeedgraph eth0 20,146 000000 ffffff} ${downspeedgraph eth0 20,146 000000 ffffff} ${color slate grey}Connections:${color }${tcp_portmon 1 32767 count} in / ${tcp_portmon 32768 61000 count} out ${alignr} ${color slate grey}Service/Port:${color} ${voffset 5}${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 rservice 0} ${color ddaa00}${tcp_portmon 1 65535 rport 0}${color} ${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 rservice 1} ${color ddaa00}${tcp_portmon 1 65535 rport 1}${color} ${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 rservice 2} ${color ddaa00}${tcp_portmon 1 65535 rport 2}${color} ${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 rservice 3} ${color ddaa00}${tcp_portmon 1 65535 rport 3}${color} ${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 rservice 4} ${color ddaa00}${tcp_portmon 1 65535 rport 4}${color} ${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}Time${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} ${voffset -4}${font Terminus:size=32}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M%p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M%p}${endif}${endif}${font} ${font :size=10}${voffset 3}${alignc}${color ddaa00}${time %a,}${time %e %B %G}${voffset -15} ################## ## RHYTHMBOX ## ################## ${if_running rhythmbox}${font WenQuanYiMicroHei:bold:size=8.70}${color 4b74b4}Now Playing${color slate grey}${offset 8}${voffset -2}${hr 2}${font}${voffset 7} #Down to business ${exec ~/.conky/rhythmbox-ca.sh}${image /tmp/cover -p 0,780 -s 64x64} ${execp conkyRhythmbox --template=/home/vehemoth/.conky/first.template} ${execp conkyRhythmbox --template=/home/vehemoth/.conky/second.template} ${execp conkyRhythmbox --template=/home/vehemoth/.conky/third.template} ${voffset -75}${offset 78}${execbar conkyRhythmbox --datatype=PP} ${endif}
and here is the verbose output of the CA datatype.Code:#!/bin/bash if test `conkyRhythmbox --datatype=CA`; then return else cp /home/vehemoth/.conky/none.png /tmp/cover fi
Code:*** INITIAL OPTIONS: datatype: CA template: None ratingchar: * nounknownoutput: False secondsoutput: False maxlength: 0 verbose: True errorlogfile: None infologfile: None INFO: Calling dbus interface for music data INFO: Setting up dbus interface INFO: Calling dbus interface for music data INFO: Preparing output for datatype:CA INFO: Linking coverart from /home/vehemoth/Music/ogg/Atomic cat - Trance Imagination -- Jamendo - OGG Vorbis q7 - 2010.07.19 [www.jamendo.com]/[cover] Atomic cat - Trance Imagination.jpg to /tmp/cover Traceback (most recent call last): File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 228, in getOutputData self.getShellCommandOutput(linkcmd) File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 479, in getShellCommandOutput self.logger.info("Running shell command '%s'"%shell_command) AttributeError: RhythmboxInfo instance has no attribute 'logger' ERROR: Unknown error when calling getOutputData:RhythmboxInfo instance has no attribute 'logger'
Bookmarks