Hello Paul, Jos, Paul Gevers [2014-03-21 10:50 +0100]: > I made upstream aware, he is looking in to it. He tries to use > libudisks2, but he is having difficulties implementing it. It isn't > clear to him how to mount a cdrom via the library. Depends on what you want to do. If you e. g. have the device path (e. g. from enumeration or from the http://udisks.freedesktop.org/docs/latest/UDisksClient.html#UDisksClient-changed signal) you can get an UDisksObject from it with http://udisks.freedesktop.org/docs/latest/UDisksClient.html#udisks-client-get-object and then the UDisksFileSystem object with http://udisks.freedesktop.org/docs/latest/UDisksObject.html#udisks-object-get-filesystem On an UDisksFileSystem object you can then call http://udisks.freedesktop.org/docs/latest/UDisksFilesystem.html#udisks-filesystem-call-mount-sync (or the async variant, which is probably better for a well-behaved program). You can also check if it's a CD-ROM with http://udisks.freedesktop.org/docs/latest/UDisksDrive.html#udisks-drive-get-optical If you want to directly speak D-BUS, you can grab the /org/freedesktop/UDisks2/block_devices/<devname> object, and call org.freedesktop.UDisks2.Filesystem.Mount(). It's been a few years since I had a CD drive, so the above is a bit fuzzy, sorry. If you can describe in more detail what you need to do, I can probably put together some example code. Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Attachment:
signature.asc
Description: Digital signature