Created attachment 176896 [details] Screenshot of Disks&Devices notification. These are all the same USB drive, plugged 5 times.and unplugged SUMMARY Using a custom action to format a usb drive, the drive remains in the Disks&Devices list after it is unplugged. STEPS TO REPRODUCE 1. Write a custom action with the following X-KDE-Solid-Predicate: [IS StorageDrive AND StorageDrive.driveType == 'HardDisk'] 2. Plug in USB drive 3. Drive appears in list under "Storage Drive" 4. Unplug USB drive. OBSERVED RESULT: Drive remains in list. Plug it in again and another entry will appear in the list. EXPECTED RESULT: The device should disappear from the list when unplugged. SOFTWARE/OS VERSIONS Linux/KDE Plasma: openSUSE Tumbleweed KDE Plasma Version: 6.2.4 KDE Frameworks Version: 6.9.0 Qt Version: 6.8.1 ADDITIONAL INFORMATION: This behavior seems to depend on invoking "StorageDrive" parameters into the Solid Predicate. Any partitions that appear under the "Storage Volume" headings disappear normally after the device is removed.
Further observation: If a USB drive with no formatted partitions is inserted, the drive will appear under "Storage Drive"; and then if it is removed, its entry will be removed as should be expected. If, however, there is any formatted partition on the drive, the drive itself will appear under "Storage Drive" and the formatted partition will appear under "Storage Volume". If the drive then is unplugged, the entry under "Storage Volume" will be removed but the entry under "Storage Drive" will remain.