LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2016, 08:25 AM   #1
MurderousMincePie
LQ Newbie
 
Registered: Feb 2016
Posts: 8

Rep: Reputation: Disabled
Question [Arch Linux] MPD/ncmpcpp Automatically copy cover art of current song to /tmp


I'm trying to display cover art in ncmpcpp using this tutorial and a script that fetches the cover art from the /tmp directory.

As a quick sanity check I have modified the script by changing the music directory to my own personal music directory and the script itself seems to work fine. I've also installed mpc, imagemagick (dependency of the script) ect. I've confirmed that other applications can read the cover art of my audio files.

On my old computer I did manage to get this working. What should happen is that whenever I select a song the cover art of the song should be copied to the /tmp directory and named 'cover.jpg'. Then the script can fetch it and display it in the background of my terminal (urxvt) whenever I choose a song. However on my new computer the cover art doesn't appear in the /tmp directory when I select a song.

I'm on a brand new, fully updated installation of Arch Linux. So I am probobly missing some dependency that performs this task. If not would it be possible to make a script that would recognise when MPD changes the current song and copies it's cover art to /tmp? I've vertabrim copied my config files for both ncmpcpp and mpd from my old computer with the only alteration being the music directory so I have no idea why the cover art isn't appearing in /tmp.

What's weird is that when I set this up on my old computer it already copied the current song's cover art from whatever song I was playing to /tmp without any further action. But I'm not sure what I did to accomplish that. I've tried this on Linux Mint and it doesn't put the cover art in the /tmp directory so I must have done something to make it work.

Any help/suggestions are very much appreciated.
 
Old 08-04-2016, 02:14 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 18,380
Blog Entries: 12

Rep: Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618
i suggest you put
Code:
#!/bin/bash -x
at the beginning of the script and then run it manually to debug it.
 
  


Reply

Tags
arch linux, mpd, music, tmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MPD pauses song after going to next track project89 Linux - Software 2 11-28-2019 03:59 AM
[SOLVED] slackware current and rpi2 ffplay -nodisp / mplayer no sound / and opus song files with mpd slackartist Slackware - ARM 0 04-27-2016 11:44 PM
ncmpcpp/mpd -- high CPU usage TuxArch Linux - Software 1 02-26-2011 11:17 PM
Strange issue with mpd + ncmpcpp volume after pausing (pulse) rld Linux - Software 0 01-17-2011 01:27 AM
LXer: Ncmpcpp: Ncurses MPD Client [Shell Music Player] LXer Syndicated Linux News 0 01-04-2010 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration