El Dom 05 Feb 2006 00:58, Fernando J. Rodríguez (Herr Groucho) escribió:
> Hi!
> In a dedicated minimal Debian 3.1 stable system for freevo
> I installed hotplug (for automatic module loading), udev
> (for automatic special device nodes creation in /dev) and
> usbmount (for automatic mounting of usb storage devices;
> very straightforward tool: no desktop environmet required).
> After doing so, whenever I connect an USB storage device,
> its filesystem gets mounted on /media/usb0.
>
> So far so good. I had then added aproppiate items in
> AUDIO_ITEMS, VIDEO_ITEMS and IMAGE_ITEMS in my
> configuration file to access the /media/usb0 directory from
> freevo and it worked like a charm, until I discovered the
> existance of the usbmount plugin and I wanted the "USB
> device" menu item I statically added in AUDIO_ITEMS,
> VIDEO_ITEMS and IMAGE_ITEMS to only be displayed when an
> actual USB device was connected. :-)
>
> So I activated the usb and usbstorage plugins as described
> in the documentation:
> plugin.activate('usb')
> plugin.activate('usbstorage', type='video', args=('USB Device',
> '/media/usb0')) plugin.activate('usbstorage', type='audio',
> args=('USB Device', '/media/usb0')) plugin.activate('usbstorage',
> type='image', args=('USB Device', '/media/usb0'))
>
> ..and removed the static entries for /media/usb0 from
> AUDIO_ITEMS, VIDEO_ITEMS and IMAGE_ITEMS.
> The menu item "USB Device" now indeed dissapears when there
> is no USB storage device connected, but when there is one
> something weird happens: in the "USB Device" item from the
> audio menu freevo shows only images and not audio files.
>
> This problem was already reported before in [1].
> [1] http://sourceforge.net/mailarchive/message.php?msg_id=14398863
>
> Is the other poster reading this? Did you find a solution,
> Alberto?
I continued investigating and in fact it is a bug.
To fix I just change line 66 of plugins/usbstorage.py from:
d = DirItem(self.mountpoint, parent, self.name,
display_type='image')
into:
d = DirItem(self.mountpoint, parent, self.name,
display_type=parent.display_type)
--
Herr Groucho
ID Jabber: [EMAIL PROTECTED]
Señal distintiva: LU5MJR - 144,550 MHz FM.
Clave pública GPG: hkp://pks.lugmen.org.ar
Fingerprint GPG: B7BD 0FC7 D9A2 66F3 4EFC 45EE 7DE2 3932 597B 6354
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users