`GooZ´
June 23rd, 2008, 03:17 PM
Hi,
I'm writing a small web front-end to control rhythmbox (it's so I can use my phone to control it while I'm listening wireless in my house).
So far I'm writing the app as a small python CGI script.
Now I'm trying to execute the os commands by running "rhythmbox-client --next", but of course this won't work on my current running instance of rhythmbox, because apache is executing it as the root user.
I already tried executing it with
sudo -u <username> rhythmbox-client --next
but all I get is the following dbus error:
(rhythmbox-client:30712): Rhythmbox-WARNING **: Failed to connect to socket /tmp/dbus-I1Argi1OJw: Connection refused
Any ideas?
I'm writing a small web front-end to control rhythmbox (it's so I can use my phone to control it while I'm listening wireless in my house).
So far I'm writing the app as a small python CGI script.
Now I'm trying to execute the os commands by running "rhythmbox-client --next", but of course this won't work on my current running instance of rhythmbox, because apache is executing it as the root user.
I already tried executing it with
sudo -u <username> rhythmbox-client --next
but all I get is the following dbus error:
(rhythmbox-client:30712): Rhythmbox-WARNING **: Failed to connect to socket /tmp/dbus-I1Argi1OJw: Connection refused
Any ideas?