mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00

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>
10 lines
197 B
Desktop File
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
|