Hi, The code that lists devices is in <solid repository>/src/solid/devices/frontend/devicemanager.cpp. Look for Solid::Device::allDevices().
In the example you gave the backend used was udisks2: <solid repository>/src/solid/devices/backends/udisks2/udisksmanager.cpp, which issues a dbus call to udisks and parses its output to get the data printed by solid-hardware. You can add a solid action in systemsettings -> Removable Storage -> Device Actions Lamarque V. Souza http://planetkde.org/pt-br On Wed, Jun 8, 2016 at 3:39 AM, Alexander Blum <alexander.b...@vermkv.rlp.de > wrote: > Dear Ladies and Gentlemen, > > I have a question concerning KDE Solid device monitor. On the console, when > I type in solid-hardware details '/org/freedesktop/UDisks2/ > drives/TOSHIBA_8732TNPJT_222873248044' > > I get the following output: > > udi = '/org/freedesktop/UDisks2/drives/TOSHIBA_8732TNPJT_222873248044' > parent = '/org/freedesktop/UDisks2' (string) > vendor = 'TOSHIBA' (string) > product = '8732TNPJT' (string) > description = 'TOSHIBA 8732TNPJT' (string) > ... > > How does solid-hardware query the listed attributes and their values? Is > there any way of configuring a solid action script that uses and verifies > the attributes listed? > > > Kind regards / Mit freundlichen Grüßen > > > -- > Alexander Blum > > LANDESAMT FÜR VERMESSUNG UND GEOBASISINFORMATION RHEINLAND-PFALZ > > Von-Kuhl-Straße 49 > 56070 Koblenz > Telefon 0261 492-115 > Telefax 0261 492-492 > alexander.b...@vermkv.rlp.de > www.lvermgeo.rlp.de >