Add an "Open in Partition Manager" solid Action
This lets you open a device in Partition Manager from the Disks & Devices applet. BUG: 446897 FIXED-IN: 22.04
This commit is contained in:
parent
825ca30ce7
commit
4703517c75
|
@ -49,3 +49,7 @@ install(FILES gui/partitionmanagerui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/p
|
|||
install(PROGRAMS org.kde.partitionmanager.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
||||
|
||||
############################################
|
||||
|
||||
install(FILES open_in_partitionmanager.desktop
|
||||
open_in_partitionmanager.desktop
|
||||
DESTINATION ${KDE_INSTALL_DATADIR}/solid/actions/)
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
X-KDE-Solid-Predicate=[ StorageVolume.ignored == false AND StorageVolume.usage == 'FileSystem' ]
|
||||
Type=Service
|
||||
Actions=open;
|
||||
|
||||
[Desktop Action open]
|
||||
# %f gives StorageAccess.filePath, %d gives Block.device, %i gives UDI
|
||||
Exec=partitionmanager "--device=%d"
|
||||
Icon=partitionmanager
|
||||
Name=Reformat or Edit with Partition Manager
|
Loading…
Reference in New Issue