Commit graph

951 commits

Author SHA1 Message Date
Ivailo Monev
0f329f3f5a kdecore: remove redundant KMimeTypeRepository::findFromContent() argument
always an empty QByteArray object is passed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 16:21:21 +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
89177c0614 kdecore: KCharsets optimizations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 09:49:04 +02:00
Ivailo Monev
39f0466cac kdecore: convert the QString to QByteArray only once in KGlobalPrivate::initFakeComponent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 09:40:37 +02:00
Ivailo Monev
65164ccd12 kdecore: KMimeTypeFactory::allMimeTypes() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 09:14:02 +02:00
Ivailo Monev
755337cd6b kdecore: remove unused and private KMimeTypeTrader member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 08:45:54 +02:00
Ivailo Monev
c22292b849 kdecore: disable copying of KServiceTypeTrader via Q_DISABLE_COPY() macro
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 08:08:06 +02:00
Ivailo Monev
b43da6504e kdecore: remove unused and private KServiceTypeTrader member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 08:06:53 +02:00
Ivailo Monev
bfa8788988 kfile: remove archive KIO slaves leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 09:24:52 +02:00
Ivailo Monev
637366d0a1 kdecore: new KToolInvocation::setLaunchEnv() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 06:35:30 +02:00
Ivailo Monev
89e0305c24 kinit: remove redundant reparseConfiguration() method of org.kde.KLauncher interface
klauncher is no longer responsible for KIO slaves

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 03:59:18 +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
f1e45b0142 kdecore: PCI IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-07 08:12:43 +02:00
Ivailo Monev
40633cc361 kdecore: add debug area for kgreeter
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-06 09:43:25 +02:00
Ivailo Monev
bc067dbdfa kio: drop support for putting slaves on hold
with klauncher no longer responsible for KIO slave the next step is to
make them plugins and the feature to put them on hold will be of no value
because QLibrary reuses library/plugin instances and creating a new
slave object will be cheap

in other words the performance will be similar to that of KFileMetaInfo
for which I also wrote the plugins myself - they are pretty quick
compared to what strigi was doing and with more flexible configuration
interface but it took some effort to get there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-06 04:22:23 +02:00
Ivailo Monev
aa6b5ea4f0 kinit: klauncher and KCrash rewrite
much simpler and easier to maintain, also it will be proper D-Bus
service now with no sockets, process title hack and whatnot. KCrash
and startkde script (in kde-workspace repo) have to be adjusted for
it tho

note that the internal KIO scheduler already has the functionality to
put slaves on hold but now they will be started as detached process.
eventually they may become plugins (they are loaded as such by kioslave
program) without event loop dispatcher

fixes application startup notification (ASN) and cleanup issues

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-04 23:20:15 +02:00
Ivailo Monev
e851a35ee5 generic: remove unused X-KDE-autostart-after feature
klipper and kmix set it to "panel" in their .desktop files but that's not
valid application/service

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-03 04:06:04 +02:00
Ivailo Monev
86adc6607c kdecore: do not check if the file exists from KAutostart::isServiceRegistered()
if the file does not exists KStandardDirs::locate() returns empty QString

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 06:58:27 +02:00
Ivailo Monev
6ce3335549 kdecore: drop support for storing autostart phase as string
note: workspaceoptions KCM may have written such entries

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 06:53:22 +02:00
Ivailo Monev
82e165acc0 kdecore: include kdeui library includes
fixes bootstrap build

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-02 02:38:03 +02:00
Ivailo Monev
68972d2ddd kdecore: add debug areas for kdirshare and kscreensaver
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 18:33:42 +02:00
Ivailo Monev
c5cf1cc960 kdecore: remove bogus kmimetype_nomimetypes test
the test is for the worse case scenario, i.e. what if /etc/passwd is
missing? in that case the system is borked and should be fixed, that's
not a problem Katana will (or should) solve nor workaround tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 05:55:34 +02:00
Ivailo Monev
211ea52f22 kdecore: PCI IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 23:41:10 +02:00
Ivailo Monev
6e8e2238cc kdecore: add comment to KDebug() default switch case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 04:51:47 +02:00
Ivailo Monev
f80529f5cd kdecore: replace hard-codec KDebug output types with enums
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-27 02:44:44 +02:00
Ivailo Monev
aaef91f3d4 kdecore: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-24 00:10:47 +02:00
Ivailo Monev
050116df49 kdecore: remove the redundant Sonnet::QSpellEnchantClient::reliability() method
sonnet used to have plugins, now there is only one client and it is builtin

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 03:22:22 +02:00
Ivailo Monev
01129bd9a8 kdecore: use proper type for the ignored words list
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 03:10:28 +02:00
Ivailo Monev
25380847aa kdecore: Sonnet::Loader::createSpeller() optimization
meanwhile looking for dictionary memory leaks..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 02:43:09 +02:00
Ivailo Monev
cdba3b2f2a kdecore: remove redundant breaks in Sonnet::Speller::testAttribute()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 02:35:55 +02:00
Ivailo Monev
87d9092ab3 kdecore: Sonnet::Speller::availableDictionaries() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 02:33:11 +02:00
Ivailo Monev
2ee616b91a kdecore: do not deep-copy the QString in Sonnet::Loader constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-23 02:32:16 +02:00
Ivailo Monev
8d59335206 kdecore: PCI IDs database update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 23:45:37 +02:00
Ivailo Monev
8e5dd5ea50 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-14 15:50:30 +02:00
Ivailo Monev
3339338121 generic: prepare for Katie changes
note that kDebug(), kWarning(), etc. automatically add end of line

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 00:46:32 +02:00
Ivailo Monev
9b41127ecb generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 00:40:18 +02:00
Ivailo Monev
1039216fd8 kdecore: delete the KDETranslator instance from removeKDETranslator() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-10 14:53:35 +02:00
Ivailo Monev
0b9281b360 kdecore: install and remove KDETranslator via constructor/deconstructor functions
it has to be done only once (because it calls global static to translate),
does not have thread requirement (QCoreApplication locks when installing
or removing translator) and it checks if KGlobal has locale via
KGlobal::hasLocale() to ensure it is not attempting to call
KGlobal::locale() after KGlobal destruction

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-10 06:51:36 +02:00
Ivailo Monev
e07fc01227 kdecore: return the value of KGlobal::hasLocale() from KDETranslator::isEmpty() and check it from KDETranslator::translate()
fixes possible crash due to accessing the private KLocale data after
destruction

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-06 10:10:46 +02:00
Ivailo Monev
3a6ed6d1e1 kdecore: KDirWatch::addDir() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 11:12:13 +02:00
Ivailo Monev
134d90ee06 kdecore: remove unused custom autostart path
the XDG path is be used instead, the custom autostart path was for programs
and scripts which is not feature mentioned in the spec

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 09:54:48 +02:00
Ivailo Monev
74cbd4de8d kdecore: do not attempt to load empty data into QTranslator
fixes runtime warning about empty data for invalid catalogs (e.g. when
translations are not installed either for the language requested or at all)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 04:21:39 +02:00
Ivailo Monev
31c3c80b35 kdecore: add entry for the default debug area to kdebug.areas
now it will be configurable via KCM

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 04:23:47 +02:00
Ivailo Monev
1af12047e6 kdecore: remove unused KLocalizedString semantics
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 01:06:07 +02:00
Ivailo Monev
8d9978f7e5 kdecore: remove unused KLocalizedString semantics
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 00:47:26 +02:00
Ivailo Monev
169e338449 kdecore: convert KuitFormats functions to static
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 02:37:11 +02:00
Ivailo Monev
b8b37e01a3 kdecore: actually install the KDETranslator
was non-operational code due to QT_NO_TRANSLATION being defined in the
kglobal source file for some reason, it has a huge impact on performance
ofcourse because anything Katie will attempt to translate will go trough it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-02 11:02:51 +02:00