On Fri, 5 Apr 2002, Patrick J. Kobly wrote:

> Correct me if I'm wrong, but don't apps which use libusb need to be setuid 
> root?  

For an mp3 player there is no need to be setuid neither it has
to be a kernel driver.

Simply use devfs. gnoii/nomadii for Nomad II mp3-player is a good
example(s bit is left on nomadii but you do not need it). For access to 
the device the simplest way is to set up hotplugging script like this:

chown --reference=/dev/console $DEVICE

More exmaples are in nomadii-utils/gnoii packages at soruceforge.net

In my opinion all mp3 players should be removed from kernel space
and put into user space. This has several advantages:
-less code in kernel space, smaller, easier to maintain kernel source
-since code is user level there is no need to compile the driver
 for given kernel, much easier for users to get  a newer version

Also you may check out gnoii/libnomadii/nomadii as one of the goals
was to keep lowe level functions in the library - this way,
simply by replacing the library - you will get GUI and CLI
with less effort than if it were developed on your own.

I wish I had time and skills to design a good generic mp3-player interface 
for Linux - right now everybody writes his/her own GUI/CLI and this is
really ineffective.

BR,

Jacek


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to