Re: load xmms config via php
adam <[email protected]>
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
for anyone that is interested...i can get php to load a config file of my
choice for xmms by changing the $HOME environment variable from
within php, eg:
putenv("HOME=/blah");
$start_xmms=shell_exec('bash -c "xmms -p /home/mp3/* < /dev/null &"');
if i have the .xmms folder (incudling 'conf') in the 'blah' (or
whatever) directory then xmms loads these values as its conf
adam
On Sun, 13 Jun 2004, adam wrote:
> yep...i worked that out about 5 secs after posting the email! :) ...its an
> ok solution but if you're making a re-deployable application it adds an
> extra layer of complexity...
>
> something simpler would be good...lkike xmms -c /blah/config
>
> but i guess thats in the future ;-)
>
> adam
>
>
> On Sat, 12 Jun 2004, Sean Walker wrote:
>
> > adam wrote:
> >
> > >hi,
> > >
> > >I am trying to launch xmms via php...using this command:
> > > exec('bash -c "xmms -p /home/adam/mp3/* > /dev/null 2>&1 &"');
> > >
> > >It loads ok, but because apache runs as www-data then xmms is unable to
> > >find the config as there is no ~/.xmms/config
> > >
> > >Is there anyway of forcing xmms to load a specififc config file, say in a
> > >local dir in the htdocs tree?
> > >
> > >adam
> > >
> > >
> > >
> > Couldn't you just add a home directory to the www-data user? I'm
> > assuming it doesn't have a home dir. Just edit you passwd file and give
> > it a location. Then create .xmms/config (copy yours) and it should be
> > fine. At least, I think it should be! :)
> >
> > --Sean Walker
> > http://sean.surfmy.net/
> > http://sacwifi.net/
> >
>
>
>
>
> Adam Hyde
> [email protected]
>
> r a d i o q u a l i a
> http://www.radioqualia.net
> Free as in 'media'
>
> current:
> http://www.radio-astronomy.net
>
> work:
> The Streaming Suitcase
> Streaming Media Consultant
>
> contact:
> email : [email protected]
> phone : + 371 938 6752 (Latvia)
> email to sms : [email protected]
>
>
> _______________________________________________
> xmms-devel mailing list
> [email protected]
> http://lists.xmms.org/mailman/listinfo/xmms-devel
>
Adam Hyde
[email protected]
r a d i o q u a l i a
http://www.radioqualia.net
Free as in 'media'
current:
http://www.radio-astronomy.net
work:
The Streaming Suitcase
Streaming Media Consultant
contact:
email : [email protected]
phone : + 371 938 6752 (Latvia)
email to sms : [email protected]