kde-workspace/soliduiserver/actions/unmountdevice.desktop
Ivailo Monev 470b52d29c soliduiserver: implement mountpoint cleaner
lots of references have to be kept and passed around because once the
device is removed Solid::Device is just an UDI - anything else is
obtained dynamically and will return invalid results (even casts will
not work)

what the mountpoint cleaner does? when a device is removed without
being unmounted (e.g. USB storage) the program will call `unmount`
essentially making sure the device node and the mount point can be used
when the device is inserted again, no other project does that as far as
I am aware

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 11:02:45 +03:00

10 lines
197 B
Desktop File

[Desktop Entry]
X-KDE-Solid-Predicate=IS Block
X-KDE-Solid-When=Remove
Type=Service
Actions=unmount;
[Desktop Action unmount]
Name=Unmount the device
Exec=solid_unmount_device %d
Icon=media-eject