Conky help - image with spaces in path
Hope this is the right forum for this!
I am trying to include album art in Conky. How can I use paths with spaces in them in ${image ...}? I am getting the data from dbus (from gmusicbrowser) in a perl script. Can anybody help? Dave |
Either rename your directories to not have spaces - "/home/music/the_new_album/the_pics" or whatever.
Or try escaping the spaces: ${image /home/music/the\ new\ album/the\ pics} |
Thanks for the quick reply.
I've just tried escaping the spaces, but it doesn't work. (Renaming everything would be a mammoth task!) |
Maybe in quotes?
${image "/home/music/the\ new\ album/the\ pics"} or ${image "/home/music/the new album/the pics"} |
Tried that with " and ', and still nothing. (Putting " or ' round it doesn't even work on paths with no spaces.)
I can't find anything on the web about it, so I suspect I'm missing something really obvious. |
You can use a script to replace spaces with underscores.
|
Quote:
Unfortunately There are other people that have described the issue, but no answers: https://bbs.archlinux.org/viewtopic....76067#p1576067 http://superuser.com/questions/92980...-configuration |
Thanks - you found some references, which is more than I could!
I may try copying to a temp file in the perl script with no spaces if the name has changed since the last call. |
Right on. Maybe share that when you have it written - so the next person that scours the internet may find a workable answer.
|
Will do! :)
|
Quote:
Code:
ls -l 'filename with space' |
It doesn't work within ${image} in Conky.
|
Quote:
|
I've got a working workaround.
In perl script: Code:
use File::Copy; Is there an easy way to set environment variables for the main bash shell? |
I meant ${image pathtofile ....}
|
All times are GMT -5. The time now is 10:52 AM. |