hallas created this revision. hallas added reviewers: Frameworks, broulik, bruns. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. hallas requested review of this revision.
REVISION SUMMARY Use the KListOpenFilesJob class from KCoreAddons to retrieve the applications that are blocking an unmount. The KListOpenFilesJob is a generalized version of the code here. TEST PLAN Insert a USB stick Open a file from the USB stick Remove the USB stick using the Device Notifier Notice the error message REPOSITORY R120 Plasma Workspace BRANCH use_klistopenfilesjob (branched from master) REVISION DETAIL https://phabricator.kde.org/D25125 AFFECTED FILES dataengines/devicenotifications/CMakeLists.txt dataengines/devicenotifications/ksolidnotify.cpp dataengines/devicenotifications/ksolidnotify.h To: hallas, #frameworks, broulik, bruns Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart