Not likely as $HOME could be /root, /home/johnny or /home/mary on any one system.zigbert wrote:Mick
Would it help if $WORKDIR was set in the rc-file or in a separate file?
However, I came up with a quick and dirty work around. Seems to work ok. When the tray app is initialised it creates a symlink to $HOME/.pmusic/tmp/icon_playpause.png in /tmp. Now the C code looks for that . Simplest way I could think of and I tested by deleting $HOME/.pmusic. I didn't test as a multiuser but it's not hard coded now so should be ok.
Attached.
EDIT: also compiled in FatDog, first attachment, no source (same as 32 src)