2009-12-01, 21:44
FireMan Wrote:Hi everyone,
Is it possible automount any USB device and put it as source, as happens in XBMC Live?
With XBMC Live, for instance, if I plug an USB flash labeled "Kingston", will immediately appear a source called "Kingston" in videos, music and pictures. This is VERY handy!
Thanks in advance.
According with this tread, the automount I mentioned will works only if xbmc is starte with --standalone
As far I know, the XBMC is started by a script in /etc/init.d
I did try start manual by running /usr/share/xbmc/xbmc.bin --standalone &, but this wll give the "Can't open display" error.
How can I start it with --standalone option?
Thanks in advance.
EDIT
Problem solved:
Code:
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.storage.mount-removable
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.device.volume
Should be nice add these lines to the script, also the lines needed to make possible shut down, suspend, reboot etc.:
Code:
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions