Ivailo Monev
0c0e446cb1
generic: adjust to KDesktopFileActions changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-13 06:19:46 +03:00
Ivailo Monev
957da2bb43
generic: adjust to KRun changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 03:22:02 +03:00
Ivailo Monev
fb686dc3c1
plasma: implement session manager
...
comes along with plenty of other changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-09 08:33:28 +03:00
Ivailo Monev
a3cfbac5d2
soliduiserver: update the actions before handling the device add event
...
because removing device removes the actions for the device
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-15 14:06:09 +03:00
Ivailo Monev
b59da184df
soliduiserver: wait for the process via QEventLoop in SolidUiServerHelper
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 20:46:39 +03:00
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
dd4b27b579
soliduiserver: pass the Solid::Device object instead of the UDI to kExecuteAction()
...
so that it does not have to be re-constructed and removed device can be
passed to it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 09:00:42 +03:00
Ivailo Monev
09f7754713
soliduiserver: do not use umount2() for unmounting
...
umount2() does not work for removed devices and a mount-point cleaner will
be implemented soon
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 08:59:08 +03:00
Ivailo Monev
ab1d46e3c7
soliduiserver: move the handleActions() call to the scope it should be
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 08:57:55 +03:00
Ivailo Monev
176d2326b2
soliduiserver: do not detach when unmounting
...
while and operation in progress, such as copy job, will complete setting up
the permissions of the destination will fail for example if the device is
lazily-unmounted
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 23:17:24 +03:00
Ivailo Monev
e4366d3493
soliduiserver: implement feature to execute actions under certain conditions
...
can implement condition for when device changes occurs too but I have no
plans to use it for something, not yet that is. the remove condition can
(and probably will be) used to start kvkbd when there is no keyboard
plugged in altough that will require program to check when to do that
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 19:26:41 +03:00
Ivailo Monev
3e469d96f0
solid: set the SolidUiDialog device label text to similar one prior to d477598c1d
...
except with correct new-line tag
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 22:50:52 +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
cf558d649b
soliduiserver: use Solid::errorString() for the mount/unmount error notification text
...
translated and more specifiec than the generic "Mount or unmount error"
text in soliduiserver.notifyrc
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-29 04:19:19 +03:00
Ivailo Monev
99357e8a44
soliduiserver: check if the device is removable before unmounting it
...
as a precaution for device invalidation after unmount
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 00:15:05 +03:00
Ivailo Monev
cb97fd9984
soliduiserver: notify about mount and unmount errors as well as safe to remove devices
...
much like prior to f47177f876
except that
the notification is not done on solid signals but from the KDED module
responsible for mounting and unmounting
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 00:05:25 +03:00
Ivailo Monev
aa44e3eef0
generic: adjust to kde4_install_auth_helper_files() macro changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-10 02:56:17 +03:00
Ivailo Monev
268376e08b
generic: adjust to solid changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-05 07:15:01 +03:00
Ivailo Monev
eab4d278fb
generic: include now required headers
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-29 21:18:20 +03:00
Ivailo Monev
c239ff2ce8
soliduiserver: warn when the storage device is invalid or insecure
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-29 08:07:29 +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
ce48bc0997
generic: preperations for kdelibs changes
...
automatically replaced via:
find -name CMakeLists.txt -exec sed -e 's|${KDE4_PLASMA_LIBS}|KDE4::plasma|g' -e 's|${KDE4_KIO_LIBS}|KDE4::kio|g' -e 's|${KDE4_SOLID_LIBS}|KDE4::solid|g' -e 's|${KDE4_KFILE_LIBS}|KDE4::kfile|g' -e 's|${KDE4_KDECORE_LIBS}|KDE4::kdecore|g' -e 's|${KDE4_KDEUI_LIBS}|KDE4::kdeui|g' -e 's|${KDE4_KCMUTILS_LIBS}|KDE4::kcmutils|g' -e 's|${KDE4_KDECLARATIVE_LIBS}|KDE4::kdeclarative|g' -e 's|${KDE4_KPTY_LIBS}|KDE4::kpty|g' -e 's|${KDE4_KEMAIL_LIBS}|KDE4::kemail|g' -e 's|${KDE4_KMEDIAPLAYER_LIBS}|KDE4::kmediaplayer|g' -e 's|${KDE4_KPARTS_LIBS}|KDE4::kparts|g' -e 's|${KDE4_KIDLETIME_LIBS}|KDE4::kidletime|g' -e 's|${KDE4_KTEXTEDITOR_LIBS}|KDE4::ktexteditor|g' -e 's|${KDE4_KPASSWDSTORE_LIBS}|KDE4::kpasswdstore|g' -e 's|${KDE4_KARCHIVE_LIBS}|KDE4::karchive|g' -e 's|${KDE4_KDNSSD_LIBS}|KDE4::kdnssd|g' -e 's|${KDE4_KNOTIFYCONFIG_LIBS}|KDE4::knotifyconfig|g' -e 's|${KDE4_KEXIV2_LIBS}|KDE4::kexiv2|g' -i {} +
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 23:27:11 +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
1e2511421c
generic: adjust to KAuthorization changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-12 08:27:34 +02:00
Ivailo Monev
8b2eba7361
generic: prepare for Katie changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 01:41:49 +02:00
Ivailo Monev
936c69c827
generic: prepare for Katie changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-14 16:19:24 +03:00
Ivailo Monev
1212fc79f7
generic: adjust to authorization changes
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-25 19:12:57 +03:00
Ivailo Monev
56b3460011
generic: drop SMB and NFS support
...
I cannot think of a use case for them with kdirshare service in place,
never needed to access one either
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-03 02:10:14 +03:00
Ivailo Monev
a827f81b4f
soliduiserver: implement network share unmounting
2022-05-17 22:36:56 +03:00
Ivailo Monev
3c9e044b03
soliduiserver: de-duplicate code
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-11 03:31:02 +03:00
Ivailo Monev
b97b816234
soliduiserver: copyright correction
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 22:32:02 +03:00
Ivailo Monev
0338fbeca2
soliduiserver: implement network share mounting
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 19:29:20 +03:00
Ivailo Monev
9e4c84f8e6
soliduiserver: store the filesystem match string outside the loop
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 16:58:36 +03:00
Ivailo Monev
4f1ae2af3f
soliduiserver: mount devices via mount() and unmount them via umount2() functions on Linux
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 16:53:37 +03:00
Ivailo Monev
c9c4389296
soliduiserver: consider ZFS filesystems as insecure
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-11-16 23:29:33 +02:00
Ivailo Monev
28df75d807
soliduiserver: use device description in prompt for consistency with Dolphin
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-23 09:37:39 +03:00
Ivailo Monev
b8a3359794
soliduiserver: reuse variable in SolidUiServer::mountDevice()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-22 20:59:03 +03:00
Ivailo Monev
d5f7e713e2
soliduiserver: deal with TODO related to crypto devices [ci reset]
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-22 18:11:11 +03:00
Ivailo Monev
20fe68da2f
soliduiserver: mount/unmount methods review
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-21 20:19:16 +03:00
Ivailo Monev
574a840200
soliduiserver: use helper to mount/unmount
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-07-21 14:42:39 +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
591b538337
generic: replace installation paths with KDE4_ prefixed
...
see commit in kdelibs repository
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:13:13 +00:00
Ivailo Monev
f1cfe7bdba
generic: replace KProcess with QProcess where feasable
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-30 16:22:26 +00:00
Ivailo Monev
2baf4467d1
generic: major build system cleanup
2015-09-01 04:37:19 +03:00
Ivailo Monev
c433e4502a
generic: adjust for use with CMake moc
2015-02-27 09:28:46 +00:00
Ivailo Monev
24b6d92809
changed bash scripts shebangs
2014-11-15 05:48:13 +02:00
Ivailo Monev
fdeee7c849
imported everything from kde-runtime
2014-11-15 04:16:00 +02:00