Commit graph

1330 commits

Author SHA1 Message Date
Ivailo Monev
40f5fb0261 kdecore: remove unused KConfigIniBackend::lock() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-30 22:28:39 +02:00
Ivailo Monev
5fde68fd67 kdecore: remove unused KConfigIniBackend methods and members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-30 22:19:53 +02:00
Ivailo Monev
8fbb05eb99 kdecore: remove declaration of non-existing method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-30 21:53:05 +02:00
Ivailo Monev
b43339cf19 kio: drop proxy support
because curl internally checks the environment for proxy-related variables
it is redundant to duplicate that feature, that however is possible due to
the rewrite of the ftp, sftp and http slaves that I did. some other changes
were made while at it such enable automatic resuming by default, if KIO
slaves cannot resume or do not resume transfers that is different thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-29 09:54:38 +02:00
Ivailo Monev
318fa971d3 kdecore: adjust tests to recent changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-27 06:20:57 +02:00
Ivailo Monev
4df06d8f7a generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-24 02:43:33 +02:00
Ivailo Monev
a65bd3b685 kfile: merge it into kio
once upon a time it was either part of it or was separated from it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-24 01:19:59 +02:00
Ivailo Monev
75b9cfddd3 generic: const-ify private data pointers where copying is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-23 06:49:59 +02:00
Ivailo Monev
a324de58dc kdeui: log KAction warning to the correct debug area
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-22 14:42:24 +02:00
Ivailo Monev
3ce3fcf34b kdeui: drop KNotificationRestrictions class
most of the functionality is not implemented, the rest can be done via
Solid::PowerManagement::beginSuppressingScreenPowerManagement() and
Solid::PowerManagement::stopSuppressingScreenPowerManagement()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-22 13:53:40 +02:00
Ivailo Monev
6b75a23901 kdecore: remove warning about kglobal header
I do not guarantee compatibility between releases, no file should be copied
without the tought that the person that does it takes over maintainership
(i.e. I take no responsibility for what someone else does)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-22 11:04:18 +02:00
Ivailo Monev
84e95ac58c kdecore: remove unused test plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-22 10:58:41 +02:00
Ivailo Monev
2d64361d58 kdecore: partially revert 5498e78c34
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-21 18:18:32 +02:00
Ivailo Monev
5498e78c34 kdecore: drop internal helper protocol info
the check refers to services only, there are no helper protocols now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-21 06:02:38 +02:00
Ivailo Monev
590546bda8 kdecore: remove references to the old ftp and sftp slaves
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-17 21:51:35 +02:00
Ivailo Monev
da0323350c kdecore: scoop timezones
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-17 04:36:27 +02:00
Ivailo Monev
a5132853b0 kioslave: reimplement ftp and sftp slaves via curl
the sftp KIO slave is in the kde-workspace repo and the module for
finding libssh was for it. tested ftp and sftp - both work with user and
password authentication as intended (in read-only mode, put() not
implemented)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-17 00:48:01 +02:00
Ivailo Monev
2372a3991f kdecore: KLocale optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-16 19:41:34 +02:00
Ivailo Monev
0c5d00727e generic: remove redundant Q_OS_UNIX definition checks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 09:28:30 +02:00
Ivailo Monev
2bee5fa7e2 kdecore: remove redundant KMimeGlobsFileParser::parseGlobFiles() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 22:36:48 +02:00
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
2308c97882 kdecore: logging to file optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 21:59:10 +02:00
Ivailo Monev
57832e3e37 kdecore: PCI and USB IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 03:06:44 +02:00
Ivailo Monev
982afdb961 kdecore: use static string for the default language
QString::fromLatin1() goes trough converter every time

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 01:39:17 +02:00
Ivailo Monev
d923fd1ee8 kdecore: minor KLocale optimizations
QLocale::name() concats strings while QLocale::language() returns the value
of internal private member thus there will be less memory allocations

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 00:18:45 +02:00
Ivailo Monev
6dbd6b5a8e kdecore: update note in KLocale::formatNumber()
kcalc is no more, the plasma applet (which i rewrote too) is there for such
things. for complex operations there is the plasma (krunner) plugin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-14 00:05:17 +02:00
Ivailo Monev
db09a0d58a kdecore: PCI IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-01-27 01:52:41 +02:00
Ivailo Monev
a2bfac8d78 kdecore: USB IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-01-27 01:52:22 +02:00
Ivailo Monev
e3ffed0de5 kdecore: debug areas update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-11-05 01:03:38 +02:00
Ivailo Monev
4c861f57e4 kdecore: remove compat bits
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-11-05 00:21:56 +02:00
Ivailo Monev
614568e372 kdecore: fix runtime assert about accessing global static after its destruction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-23 12:37:06 +03:00
Ivailo Monev
fbfb374b9c generic: drop scripting and tray support
after changes to multiple sub-projects (Katie, kdelibs, kde-workspace
and kde-extraapps) that finally happened, can write lots about it but I
will keep it short - by rewriting parts that were using js/qml (e.g. the
plasma applets) the desktop startup was reduced to half, also the legacy
tray thing shall be no more (anything that needs tray icon shall be a
plasma applet now) thus some applications and features will be dropped
aswell. see all repositories for the changes done

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:06:58 +03:00
Ivailo Monev
ff97198317 kdecore: unit conversion classes optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-27 20:50:15 +03:00
Ivailo Monev
2cdc9837a9 kdecore: compare units case-insensitively in unit conversion classes
on a side note: the old KUnitConversion implementation was not thread-safe
and was causing plasma-desktop crashes because it was used in the weather
and unit conversion applets, that is no longer the case tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-26 14:27:13 +03:00
Ivailo Monev
34ac1b5863 kdecore: PCI IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-24 00:23:55 +03:00
Ivailo Monev
ca2afde49f kdecore: use qHash() to make lock name
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-20 12:13:01 +03:00
Ivailo Monev
88394f1a7f kdecore: use QCryptographicHash::hash() to make lock name
converting the file to hex can result in way too long file name and
infinite loop in KLockFile::lock()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-20 12:04:51 +03: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
85d6590693 kdecore: remove unused system signal header inclusion in klockfile_unix source file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 01:06:54 +03:00
Ivailo Monev
95a8be4470 kdecore: rewrite KLockFile
the PID check was racy, bonus points for not writing data at all to the
lock and not reading it meaning less disk I/O

oh, yes - by using O_CLOEXEC the lock is stale-safe

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-09 00:46:42 +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
d254c051ed kdecore: do not insert the solid_qt catalog by default
that means to get the translations linking to solid library or calling
KGlobal::locale()->insertCatalog("solid_qt") is required

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-03 02:20:43 +03:00
Ivailo Monev
387bdaa93f generic: drop support for BrowserApplication config option
browser shall be determinted by the preferred service for "text/html",
"application/xhtml+xml" or any other MIME type for it (that includes
scheme handlers)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 21:22:56 +03:00
Ivailo Monev
7f628f95f6 kdecore: pass the QByteArray objects size to QString constructors in KCmdLineOptions and KLocalizedString
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 21:23:50 +03:00
Ivailo Monev
a09cf5455a kdecore: remove references to khotkeys
note the check if khotkeys is automatically started - it was a KDED module
not started because of XDG autostart desktop file

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 00:08:53 +03:00