Fwd: esd, mpg123, severside playing problem and cause!
Stephane Daury <[email protected]>
| Newsgroups | gmane.comp.audio.netjuke.user |
|---|---|
| Message-ID | <[email protected]> |
Forwarding a post from a non-member because this could be of use to some. Stephane Begin forwarded message: > Resent-From: [email protected] > From: Norman Harman <[email protected]> > Date: Sat Dec 14, 2002 10:41:39 PM America/Montreal > Resent-To: [email protected] > To: [email protected] > Subject: esd, mpg123, severside playing problem and cause! > > hi, > > all under Mandrake 9.0 > > I use esd (enlightenment sound daemon) with mpg123 and apache/netjuke. > esd has some funky permission system that tries and creates/access a > ~/.esd_auth file. But when netjuke attempts to start the serverside > player the apache user has no HOME environment variable so it don't > work. > > I did get it working in a sort of "this is a hack I wouldn't recomend > you do the same" sort of way. Just wanted to put this note out there > incase someone else runs into the same situation and perhaps the > developers know the 'right' way to fix this. > > I added a putenv("HOME=foo") right before the call to mpg123. > (/var/www) is the home of apache in my setup. > This is what I changed exactly. > in file "admin/jukebox-edit.php" > > function playWithMPG123($do = 'stop') { > <<snip>> > putenv("HOME=/var/www"); > exec(JUKEBOX_PLAYER_PATH.' -q -@ '.escapeshellarg(JUKEBOX_PLIST).' > >/dev/null &'); > > This might not be the wisest most secure thing to do, I don't know. > It should proly be somewhere else so it works with whatever player you > happen to be using. > > netjuke is great, btw, thanks > norm > > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/