Bug 452246

Summary: 'Reformat or edit with Partition Manager' option from 'Disks & Devices" applet is pointless with devices that can not be formatted nor edited (optical discs and mounted ISO images, for example)
Product: [Applications] partitionmanager Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR    
Version: 24.12.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2022-04-04 00:57:44 UTC
Created attachment 147950 [details]
screenshot

STEPS TO REPRODUCE
1. mount an ISO image via 'Mount' option from context menu of Dolphin or insert a cd/dvd/bd disc
2. click on 'Disks & Devices" applet in system tray and click on your mounted ISO image or inserted cd/dvd/bd
3. click on 'Reformat or edit with Partition Manager' device action
4. enter your password to open KDE Partition Manager

OBSERVED RESULT
KDE Partition Manager opens and shows an error. Please see the attached screenshot showing the error that occurs
when I reproduce the bug with an ISO image.

EXPECTED RESULT
'Disks & Devices' applet should not offer 'Reformat or edit with Partition Manager' device action for devices that can not be formatted nor edited .

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Graphics Platform: Wayland

ADDITIONAL INFORMATION
possibly this bug affects other devices like cameras and phones. Not tested with these devices.
Comment 1 Andrius Štikonas 2022-04-04 08:41:41 UTC
I guess we need to check for read-only volumes in desktop file

Currently we have [ StorageVolume.ignored == false AND StorageVolume.usage == 'FileSystem' ]