What it does is checks the difference in line numbers of the ~/.pmusic/tmp/icon_playpause.svg and acts accordingly. It now uses a stock gtk icon for play or pause.The advantage is that we can have now the correct label and not "Play / Pause" in the popup. The disadvantage is that the svg code may change in the future (or not). Sigmund, if you could add a temp file indicating the status of "pause" (say ~/.pmusic/tmp/pause) containing 0 for true or 1 for false it could reduce code and potentially be faster, although mininally, but it certainly would be more robust.

Sorry to say, but the early versions of pMusic did not fit to my needs and did also not feel really comfortable to me - but, that's just me. Nothing bad about pMusic in general. Even though I did not use it and removed it from LazY Puppy, I've followed the thread from time to time.

By now, having version 4.0.0 it seems to became a smart application and so, I gave it a go tonight. I extracted the pet, added the Nad5 Theme to the pet, modified the files for the use of gtkdialog 0.8.4 by naming it gtkdialog5 and included the gtkdialog5 binary (grabbed from LxPup 13.01) to the extracted pMusic Package. Edited the .desktop files to have German menu entries and also a nicer Icon for pMusic CD player. Repackaged it and converted it to LazY Puppy SFS (SFS P.L.U.S.) format. Created a RunScript and here it is:

Executed by SFS P.L.U.S. RunScript, running from SFS and currently playing Frank Zappa's Joe's Garage.

Even though I did not really like the early versions, I must say: this version could conquer my heart!

But there is something, a small (but big for me) issue when playing concept and/or live albums. There is a interrupt between the tracks. This might not be noticed when playing albums containing usual chart stuff, but when playing concept or live albums it is really ugly.

Is there any solution/option to listen to live albums just as it would be played from LP or CD?

vovchik and Mick
Thank you very much for your coding skills. I really appreciate your input. We have a solution, but we have to decide which one is the best. Vovchik's solution is the most robust cause it's not depending on the content in the svg. Mick's solution takes it all one step further and uses only stock icons and also changes label. The check wc -l ~/.pmusic/tmp/icon_playpause.svg|grep -q 3 is weak cause it relies on that the play.svg contains 3 lines while the pause don't. In another theme, this could be something else. The check could be strengthen by comparing the size of the files $HOME/.pmusic/icon_playpause.svg and /usr/local/pmusic/$THEME/icon_play.svg. The variable $THEME is set in $HOME/.pmusic/pmusicrc

You can minimize the gap between tracks in the preferences, but I ahve not found a way to get gapless playback with the very simple play-engine based on ffmpeg | aplay

Looking at your screenshot, I see 2 issues that worries ME.
- There is a missing icon for the button to choose playmode.
- There is no albumart and info about playing track. (made a brief test, and there is an issue with updating track info if file has no meta-tags. I will look into that.)

vovchik and Mick
Thank you very much for your coding skills. I really appreciate your input. We have a solution, but we have to decide which one is the best. Vovchik's solution is the most robust cause it's not depending on the content in the svg. Mick's solution takes it all one step further and uses only stock icons and also changes label. The check wc -l ~/.pmusic/tmp/icon_playpause.svg|grep -q 3 is weak cause it relies on that the play.svg contains 3 lines while the pause don't. In another theme, this could be something else. The check could be strengthen by comparing the size of the files $HOME/.pmusic/icon_playpause.svg and /usr/local/pmusic/$THEME/icon_play.svg. The variable $THEME is set in $HOME/.pmusic/pmusicrc

R-S-H
I have fixed the missing track info update for files without meta-tags. This is important because it guides the user to extended info like albumart, lyrics, album, discography...

...But I still wonder why you are missing icon(s). Did you include the dir $HOME/.pmusic in your SFS? If so, that is not recommended. The default rc file is /usr/local/pmusic/pmusicrc. pMusic initialize if $HOME/dir is missing (or if version is old), and then set up some default settings like the playmode (with corresponding button-icon)

OK, not testing the state of the icon at all now, just the state of aplay, this *should* be reliable and works ok for me if I delete ~/.pmusic or not. Also changed some variable names to make more sense.

EDIT: code removed

I have tested this a bit, even in old pmusic-3.2.3 and 3.3.0 and it seems quite stable, the icon works as expected, even with CD's.

I have now gettex'd the source and it is attached with a compile script, pot file and 32 bit binary.

Now, in 4.0 there is a problem I experience with CD playing, or should I say the lack of CD playing, they don't play with the "source not detected" error, same CD's play fine in older versions mentioned.

Trouble is that $CDDA_TRACK don't exist because echo "$PLAYLIST" | cut -d: -f2 > $WORKDIR/CDDA_TRACK no longer exists.. I can fix it for me but it's ugly! I don't want to pollute your more elegant structure with my rubbish . There is obviously some reason you changed it but overlooked the $WORKDIR/CDDA_TRACK it appears.