Get path of inserted usb in dbus

Posted by kjakeb on Stack Overflow See other posts from Stack Overflow or by kjakeb
Published on 2010-12-06T20:27:54Z Indexed on 2010/12/23 6:54 UTC
Read the original article Hit count: 314

Filed under:
|
|
|
|

Hello, I'm writing a program in python using dbus that detects inserted usb drives and manipulates the files inside of them. However, I can't seem to retrieve the path on my system of an inserted usb. Is there someway that I can get the path of an inserted usb in dbus, perhaps by using the GetProperty() method? I have tried using GetProperty("block.device"), but that returns /dev/sdc1 which doesn't exist on my system. Thanks in advance for any help!

© Stack Overflow or respective owner

Related posts about python

Related posts about path