Hal feature request

Alexander Larsson alexl at redhat.com
Wed Mar 24 14:42:21 EET 2004

On Wed, 2004-03-24 at 13:31, David Zeuthen wrote:

> The way I go about this in hal is to *try* to give a stable UDI - for USB
> devices, for instance, this is computed by using the vendor_id, product_id
> and serial number (if available) - if the UDI is not unique I just smack
> an arbitrary number on the back of it. Data not to use includes slot/port
> number as well as other parameters known to change if the user re-arranges
> his device.

Sounds good. Do you do any ids for the media/filesystem? (such as UUID,
or e.g. MD5SUM on initial sectors for a CD)

> But, no, in general you cannot guarantee unique identifiers, but then again
> I'm not sure about how important it is to desktop environments other than
> storing the position of a file-manager window for a block device, the name
> of the device presented to the user (e.g. "Dad's camera") etc. I haven't
> given it much thought though.

I'm not sure either, but I know the rhythmbox people expressed interest
in this.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's a notorious vegetarian cop fleeing from a secret government programme. 
She's a cosmopolitan green-skinned magician's assistant with a knack for 
trouble. They fight crime! 

More information about the xdg mailing list