[Kde-hardware-devel] Some cache in Solid? Solid::Device::listFromQuery gives outdated data

Rafał Miłecki zajec5 at gmail.com
Wed Sep 23 01:46:39 CEST 2009


Hi again,

I can not understand why kio_sysinfo gets outdated data from
Solid::Device::listFromQuery.

How to reproduce:
1) Plug in some pendrive
2) Run "konqeuror sysinfo:/"
3) Mount pendrive using for ex. DeviceNotifier
4) Refresh sysinfo:/ page in Konqueror

The problem is that
bool kio_sysinfoProtocol::fillMediaDevices()
still gets info that pendrive is not mounted.

The same problem happens in second order:
1) Plug in pendrive
2) Mount it using for ex. DeviceNotifier
3) Run "konqeuror sysinfo:/"
4) Unmount pendirve using for ex. DeviceNotifier
5) Refresh sysinfo:/ page in Konqueror

Again bool kio_sysinfoProtocol::fillMediaDevices() gets info that
pendrive is mounted and it even gets it's old mount point.

Could someone explain this to me, please?

Source:
http://websvn.kde.org/trunk/playground/base/kio_sysinfo/src/

You may want to put:
kDebug() << "[DBG]" << di.deviceNode << ": isAccesible:" <<
access->isAccessible() << " ; filePath:" << access->filePath();
in bool kio_sysinfoProtocol::fillMediaDevices()

-- 
Rafał


More information about the Kde-hardware-devel mailing list