Commit graph

7 commits

Author SHA1 Message Date
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
Ivailo Monev
d477598c1d generic: device notification reimplementation
how does it look? something like this:
https://ibb.co/1zbDVpk

and because all the SolidUiServer bits are written by me now - copyright
it to me. the actions dialog was not operational btw (not for hotplug
events anyway).

the solidautoeject thing does not even make sense - when the eject
button is pressed it was calling Solid::OpticalDrive::eject() but if the
button is pressed the tray will eject anyway so what was it doing
actually?

solid-device-automounter can be replaced with solid actions but the
devices are mounted for solid actions anyway so dropping it

as for KCM for the solid actions - there can be none but to add features
such as non-interactive actions (e.g. launch the keyboard KCM when a
keyboard is plugged without poping dialog) or actions that do something
on device removal it has to be done anew

note that the action file for opening a file manager was named
"test-predicate-openinwindow" meaning it was a testing thing rather than
a finished thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 05:47:54 +03:00
Ivailo Monev
dfc7b4bf42 soliduiserver: implement error string getter
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 01:08:26 +03:00
Ivailo Monev
4c43b79a88 soliduiserver: implement methods to mount/unmount devices that are not Solid UDI and adjust to KAutoMount changes
this goes with 986a303ff6b8e179aadc85468abcae448711a108 in kdelibs repo

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-15 22:16:03 +03:00
Ivailo Monev
8299b66a1a soliuduiserver: move code from solid
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-21 02:43:37 +03:00
Ivailo Monev
6e32aaae94 soliduiserver: remove unused KDED module method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-20 19:21:19 +03:00
Ivailo Monev
fdeee7c849 imported everything from kde-runtime 2014-11-15 04:16:00 +02:00