Bug 452246 - '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)
Summary: 'Reformat or edit with Partition Manager' option from 'Disks & Devices" apple...
Status: REPORTED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 24.01.75
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-04 00:57 UTC by Patrick Silva
Modified: 2023-11-25 15:54 UTC (History)
1 user (show)

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


Attachments
screenshot (58.98 KB, image/png)
2022-04-04 00:57 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
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' ]