HAL depreciated, but what replaced it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm the maintainer of a (relatively) simple python utility called
discspan[1] which I'd like to package for Fedora.

It currently relies on HAL via dbus to determine when media is loaded
and its capacity. I'm trying to remove the dependency on HAL since
it's been depreciated for some time but the dbus UDisks interface
seems to be lacking in several ways.

For one, there doesn't appear to be an easy way to determine which
devices are CD/DVD writers (or even readers). It has a boolean
property called "DeviceIsOpticalDisc" that looked promising but it
only reports true if the device is an optical drive AND there's a disc
inserted. In HAL I used FindDeviceByCapability which narrowed things
down.

I've worked around that for testing the property
"DriveMediaCompatibility" > 0 since it returns an array but this would
also pick up flash card readers, zip, and jaz drives. I'll have to
modify that to look for "optical" on the front of any members of the
array.

Second, I can not find any property that reports the disc capacity.
The only property that looked close is "DriveSize" but for a blank
disc this reports the same as the SectorSize, 2048.

The documentation is horrible and the only reason I got this far was
thinks to a howto[2] I found.

Any pointers would be appreciated.

Thanks,
Richard

[1] http://discspan.sourceforge.net/
[2] http://blogs.codecommunity.org/mindbending/series/python-and-udisks/
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux