Bug 497926 - USB device remains in list after unplugged with custom action and Solid predicate
Summary: USB device remains in list after unplugged with custom action and Solid predi...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices widget (show other bugs)
Version: 6.2.4
Platform: openSUSE Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-26 23:59 UTC by Steve Coleman
Modified: 2025-01-13 18:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of Disks&Devices notification. These are all the same USB drive, plugged 5 times.and unplugged (44.30 KB, image/png)
2024-12-26 23:59 UTC, Steve Coleman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Coleman 2024-12-26 23:59:07 UTC
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.
Comment 1 Steve Coleman 2025-01-13 18:59:08 UTC
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.