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
Ivailo Monev
95ee157d51
kdecore: undeprecate raw string translation methods
...
the catalog name argument is unused, KCatalog should be public if
translation from specific catalog is required
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-02 08:48:28 +02:00
Ivailo Monev
4afeec1725
kdecore: do not copy the catalogs list in KLocalePrivate::translateRawFrom()
...
the global KLocale mutex is locked in that method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-02 07:08:04 +02:00
Ivailo Monev
881b47b8ea
kdecore: use the Katie translations format
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-02 05:42:59 +02:00
Ivailo Monev
95a8d172be
kdecore: search backwards for the template and stop at directory separator in KTemporaryFile::filePath()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-01 00:51:55 +02:00
Ivailo Monev
49371e1370
kdecore: avoid temporary in KTemporaryFile constructor
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-01 00:51:05 +02:00
Ivailo Monev
53e44caa06
Revert "kdecore: pass the QByteArray object size to the static QString::fromUtf8() constructor"
...
This reverts commit 6a13ed2c4d
.
2022-11-01 00:40:02 +02:00
Ivailo Monev
6a13ed2c4d
kdecore: pass the QByteArray object size to the static QString::fromUtf8() constructor
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 23:50:14 +02:00
Ivailo Monev
f6455a717e
kdecore: minor KDesktopFile optimizations
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 23:44:13 +02:00
Ivailo Monev
b9a6e62891
kdecore: move KDesktopFile methods documentation to its header
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 23:31:25 +02:00
Ivailo Monev
e15725a9f2
kdecore: format and indent kdestopfile source and header files
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 23:29:48 +02:00
Ivailo Monev
bb7bfe36c3
kdecore: remove unused KConfigPrivate member
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 22:19:09 +02:00
Ivailo Monev
4d4442ceb2
kdecore: pass the QByteArray size to static QString constructor in KConfig::groupList()
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 21:22:55 +02:00
Ivailo Monev
0d54213264
kdecore: use the QString streaming operator in KSycocaEntry::read()
...
any change to the QString streaming operator would break reading of entries
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-31 01:18:46 +02:00
Ivailo Monev
92816d2320
kdecore: set the byte order of the QDataStream object used to parse tzdata files
...
eventually QDataStream byte order will default to QDataStream::HostEndian
so this change is preperation for that
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-30 19:05:17 +02:00
Ivailo Monev
8fc029197a
kdecore: do not include KDE4_KDEUI_INCLUDES
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-30 05:12:13 +02:00
Ivailo Monev
21630cdbdf
generic: update KDE4_KDECORE_INCLUDES variable
...
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-30 05:08:16 +02:00