<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The code that lists devices is in <solid repository>/src/solid/devices/<wbr>frontend/devicemanager.cpp. Look for Solid::Device::allDevices(<wbr>).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">In the example you gave the backend used was udisks2: <solid repository>/src/solid/devices/<wbr>backends/udisks2/<wbr>udisksmanager.cpp, which issues a dbus call to udisks and parses its output to get the data printed by solid-hardware.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">You can add a solid action in systemsettings -> Removable Storage -> Device Actions</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">
<p style="margin:0px">Lamarque V. Souza</p>
<p style="margin:0px"><a href="http://planetkde.org/pt-br" target="_blank">http://planetkde.org/pt-br</a></p></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jun 8, 2016 at 3:39 AM, Alexander Blum <span dir="ltr"><<a href="mailto:alexander.blum@vermkv.rlp.de" target="_blank">alexander.blum@vermkv.rlp.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Ladies and Gentlemen,<br>
<br>
I have a question concerning KDE Solid device monitor. On the console, when<br>
I type in solid-hardware details '/org/freedesktop/UDisks2/<wbr>drives/TOSHIBA_8732TNPJT_<wbr>222873248044'<br>
<br>
I get the following output:<br>
<br>
    udi = '/org/freedesktop/UDisks2/<wbr>drives/TOSHIBA_8732TNPJT_<wbr>222873248044'<br>
    parent = '/org/freedesktop/UDisks2' (string)<br>
    vendor = 'TOSHIBA' (string)<br>
    product = '8732TNPJT' (string)<br>
    description = 'TOSHIBA 8732TNPJT' (string)<br>
    ...<br>
<br>
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?<br>
<br>
<br>
Kind regards / Mit freundlichen Grüßen<br>
<br>
<br>
--<br>
Alexander Blum<br>
<br>
LANDESAMT FÜR VERMESSUNG UND GEOBASISINFORMATION RHEINLAND-PFALZ<br>
<br>
Von-Kuhl-Straße 49<br>
56070 Koblenz<br>
Telefon 0261 492-115<br>
Telefax 0261 492-492<br>
<a href="mailto:alexander.blum@vermkv.rlp.de">alexander.blum@vermkv.rlp.de</a><br>
<a href="http://www.lvermgeo.rlp.de" rel="noreferrer" target="_blank">www.lvermgeo.rlp.de</a><br>
</blockquote></div><br></div>