Ivailo Monev
5aedcbe444
kdecore: log debug message from KAuthorization::isAuthorized() to the proper debug area
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 22:35:40 +02:00
Ivailo Monev
c4ae9e0460
kdecore: save lock files in the global temporary directory
...
O_CLOEXEC won't do it but saving the locks in /tmp or other directory that
is purged across reboot will remove stale locks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 21:16:04 +03:00
Ivailo Monev
32f73a6c6f
kdecore: remove now unused KAUTHORIZATION_TIMEOUT and header inclusion
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 07:16:04 +03:00
Ivailo Monev
5cd906e4f9
kdecore: do not call the helper asynchronously from KAuthorization::execute()
...
racy-racy..
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 07:10:38 +03:00
Ivailo Monev
8d3250d896
kdecore: log debug message before and after the call in KAuthorization::execute()
...
otherwise it is bombardment of messages if the KAuthorization area is enabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 06:24:09 +03:00
Ivailo Monev
3e5ec11092
kdecore: use KLockFile instead of service check in KAuthorization
...
the service check is racy, KLockFile is as not (assuming the combination of
O_EXCL and O_CREAT is not racy which is not KLockFile's responsibility)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 03:14:17 +03:00
Ivailo Monev
60a5b15a39
kdecore: reduce the KAuthorization helper delayed stop time to 100ms
...
the sooner the better
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-08 00:08:21 +03:00
Ivailo Monev
8ac9b27855
generic: don't sleep while waiting for D-Bus replies
...
waiting for D-Bus replies to finish is enough business
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 21:44:47 +03:00
Ivailo Monev
450120097d
kdeui: reimplement KNotification
...
cleaning up the mess, everything but KNotificationConfigWidget is
implemented.
not only does it not require additional D-Bus service (knotify) to
function but also does not transmit pixmaps over D-Bus, the features
to execute command or log to file are dropped and will not be
implemented.
also about markup support in notifications - if the server does not
support markup then it is supposed to strip it, see the spec:
https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html#backwards-compat
meaning nothing should be done by KNotification itself because it is not
a server, it is just a proxy.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 09:01:39 +03:00
Ivailo Monev
85205ccecf
kio: log KRecentDirs and KRecentDocument actions
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-03 11:28:00 +03:00
Ivailo Monev
0ec4349446
kdecore: process events while the helper method is executed
...
that way the UI will not freeze while the method is executed, beware
signals and slots if you connect it to one (or even more) tho
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-12 08:44:32 +02:00
Ivailo Monev
90c57ada83
kdecore: unregister the helper service and object from KAuthorization destructor
...
I should (ab)use the object name for more things
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-12 08:19:15 +02:00
Ivailo Monev
860137350d
kdecore: typo
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 12:23:37 +02:00
Ivailo Monev
fcdcbe612e
kdecore: KAuthorization optimization
...
calling the stop() adaptor method instead of ping() and then stop() saves a
lot of D-Bus round-trips
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 11:34:53 +02:00
Ivailo Monev
0a67ba2ddd
kdecore: partially revert 1bd459a073
...
dead-lock may happen if QStandardPaths (which KStandardDirs uses and
thus KDebug indirectly) warns about something
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 10:18:46 +01:00
Ivailo Monev
1bd459a073
kdecore: log KAuthorization messages to specialized area
...
that includes Katie messages
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 10:09:33 +02:00
Ivailo Monev
b0b0f528da
kdecore: parent the KAuthorization object to the application instance if parent is null
...
that way it will be deleted before the application instance is plugging
memory leaks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 01:29:42 +02:00
Ivailo Monev
90dcd31b77
kdecore: tune busy loops for more throughput
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-16 20:39:36 +03:00
Ivailo Monev
8e7c91c20d
kdecore: process events for no more than 250ms while waiting for service to unregister in KAuthorization::execute()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-04 03:29:20 +03:00
Ivailo Monev
96a5dce717
kdecore: require parent object argument for the KAuthorization adaptor constructor
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-26 21:18:54 +03:00
Ivailo Monev
791e7b40ec
kdecore: simplify quit timer in KAuthorization::helperMain()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-26 06:53:26 +03:00
Ivailo Monev
dadfa96c54
kdecore: check if the QDBusConnectionInterface pointer is null in isDBusServiceRegistered() function
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-25 20:28:11 +03:00
Ivailo Monev
13aa8cf0e1
kdecore: KAuthorization optimization
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-25 20:25:05 +03:00
Ivailo Monev
e88c621aa2
generic: authorization reimplementation
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-25 19:27:41 +03:00