Commit graph

518 commits

Author SHA1 Message Date
Ivailo Monev
23de583362 kcontrol: add KCModuleInit to X-KDE-ServiceTypes for desktoppaths
so that kcminit is aware of the kcminit_desktoppaths() function

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-22 02:52:01 +03:00
Ivailo Monev
3b2b21d1f7 kioslave: remove redundant desktop KIO slave
now the home, trash and .directory files will be copied when the desktop
is started (by kcminit) rather than when desktop:/ is accessed for the
first time, no functional change besides improvement including less
.protocol files to parse and one less KIO slave to maintain

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-22 02:14:30 +03:00
Ivailo Monev
962609c26c kcontrol: remove redundant Unsorted undefinition
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-21 00:47:57 +03:00
Ivailo Monev
0f6c1bf16e kcontrol: default to Oxygen_White for cursor theme in runRdb() function
same default as KGlobalSettings, there should be getter for this..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-21 00:44:44 +03:00
Ivailo Monev
db203273a6 kcontrol: remove unused copyFile() function argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-21 00:38:15 +03:00
Ivailo Monev
f77334b71d kcontrol: default to KGlobalSettings::generalFont() when font is not specified in the global config in applyQtSettings() function
for consistency, the fonts KCM for example uses the KGlobalSettings
defaults

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-20 22:06:51 +03:00
Ivailo Monev
a1153132a7 kcontrol: minor kpasswdstore corrections
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-20 05:52:22 +03:00
Ivailo Monev
170595f3ea kcontrol: implement option to change passwords stored via KPasswdStore
requires some insight by design:
https://ibb.co/xFch8Jp

and the following commit from kdelibs:
c311f7032f4076c56cbf9ccf6db9a5e5d602aa5a

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-20 00:14:35 +03:00
Ivailo Monev
54bd703050 kcontrol: mark SonnetSpellCheckingModule reimplemetnations as slots and final
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-19 22:18:17 +03:00
Ivailo Monev
7048e8e31b kcontrol: mark KCMMetaInfo::load() and KCMMetaInfo::save() methods as slots
they are virtual slots in KCModule

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-19 21:51:47 +03:00
Ivailo Monev
678bf31e83 kcontrol: mediaplayer KCM rewrite
v2.0 after 7 years!

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 21:08:31 +03:00
Ivailo Monev
18fa6bb43f kcontrol: build system review
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 18:30:56 +03:00
Ivailo Monev
8a955d5341 kcontrol: correct krandrtray destination
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-18 18:13:22 +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
472f24878b generic: adjust to kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-17 18:38:55 +03:00
Ivailo Monev
c104e5b91e kcontrol: remove redundant X11 headers inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-12 00:24:51 +03:00
Ivailo Monev
a001c6c517 kcontrol: remove unused PreviewCursor::handle() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-11 23:39:25 +03:00
Ivailo Monev
09ffee0462 generic: exclude some source files from the unity build
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-11 23:21:43 +03:00
Ivailo Monev
2645f7fd7f kcontrol: use fixx11h to workaround clashes with X11 stuff
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-11 23:02:37 +03:00
Ivailo Monev
15319dc6bc generic: port to the new spelling classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-09 20:30:46 +03:00
Ivailo Monev
1cbda72fad generic: replace use of QTime as timer with QElapsedTimer
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-07 12:57:37 +03:00
Ivailo Monev
63987f3847 kcontrol: do not transpose the mode size used in startup commands
fixes screen setup on startup in case 90/270 rotation is specified

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-07 06:12:52 +03:00
Ivailo Monev
ff101e191b kcontrol: executeXmodmap() function optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 05:48:14 +03:00
Ivailo Monev
be89c3a277 generic: remove irrelevant TODO files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 03:15:13 +03:00
Ivailo Monev
826ebb6a81 kcontrol: debug type build fix
compile-time assert could cause the build to fail

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-04 11:10:09 +03:00
Ivailo Monev
f5e2d57c7f kcontrol: add note about the theme cache size suffix translation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-04 11:07:18 +03:00
Ivailo Monev
46771792d4 kcontrol: compiler warnings fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-04 10:55:08 +03:00
Ivailo Monev
97d16d55c9 kcontrol: make the logic match the variable name in workspaceoptions KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-03 06:03:30 +03:00
Ivailo Monev
574846b9da kcontrol: implement option to disable/enable plasma theme cache and change its size
site note: 100 MB pixmap cache is more than enough

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-02 13:49:36 +03:00
Ivailo Monev
84783fda50 kcontrol: correct directory existence checks in desktoppaths module
QFile::exists() returns true only if the path is file now, bonus points for
optimizing one destination check by doing it only once

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-30 01:06:19 +03:00
Ivailo Monev
b796384928 kcontrol: adjust to KIconTheme changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-24 21:21:26 +03:00
Ivailo Monev
ec2eb44c03 kcontrol: drop support for old color schemes
also save the chosen URL and filter the unsupported files

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-19 09:06:39 +03:00
Ivailo Monev
940c333ae0 kcontrol: install fonts KCM images in kcmfonts/pics sub-directory
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-01-01 19:47:38 +02:00
Ivailo Monev
ea611115c4 generic: call KToolInvocation::setLaunchEnv() as static method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-19 16:22:07 +02:00
Ivailo Monev
f3e5025c2f generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-17 15:43:14 +02:00
Ivailo Monev
00c878740e kcontrol: explicitly load in case its not timzeone change from KclockModule::save()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 21:34:50 +02:00
Ivailo Monev
0ea8aca13b kcontrol: lower the timezone poll time to 1 second
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 21:26:07 +02:00
Ivailo Monev
7e8f1620a0 generic: disable KCM when not authorized
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-14 21:12:03 +02: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
f9c0870657 kcontrol: openbox hack
if openbox still fails to launch check the system log, it has not been
maintained for years so I do not expect a crash to get fixed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-11 04:37:49 +02:00
Ivailo Monev
fe23eb4d95 kcontrol: use QFileInfo instead of QRegExp to get the window manager basename
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-10 15:11:54 +02:00
Ivailo Monev
ed44557733 kcontrol: use KProcess to start the window manager processes
by using KProcess::setShellCommand() the Exec key can contain not only
program but also arguments, ksmserver splits the Exec key already (see
kde-workspace/ksmserver/server.cpp)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-10 14:41:47 +02:00
Ivailo Monev
2ccfe10531 kcontrol: format and indent componentchooser KCM source and header files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-10 14:26:38 +02:00
Ivailo Monev
f1de78f207 kcontrol: set X-KDE-WindowManagerConfigure to obconf for openbox
it is the official configuration manager

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-10 10:57:49 +02:00
Ivailo Monev
e98a79801d kcontrol: replace timer with counter
don't need to register timer for this, just a bit of math

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-10 10:33:25 +02:00
Ivailo Monev
e9fff98398 kcontrol: remove compiz-custom desktop file
references script that is not provided by Katana nor compiz

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-10 07:11:06 +02:00
Ivailo Monev
57034bbac3 kcontrol: set X-KDE-WindowManagerConfigure to xfwm4-settings for xfwm4
it has two more programs for that tho - xfwm4-tweaks-settings and
xfwm4-workspace-settings

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 10:51:46 +02:00
Ivailo Monev
dea51842b8 kcontrol: disable the window manager choose while the timer dialog is active
clicking on any of its widgets before the dialog is closed can mess up the
configuration because the widgets are still connected to signals and slots

side note: if the overview button is clicked (i.e. the componentchoooser
KCM is closed) while the timer dialog is active is can happen regardless

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 10:45:47 +02:00
Ivailo Monev
2168e10dbc kcontrol: essentially window manager chooser rewrite
two things were not done properly before:
 - current window manager was not replaced if the window manager that
   would replace does not have --replace command (or alternative)
 - waiting for the window manager to become active

now that that is done, any window manager can be started right away and
more .desktop files may be added in the future

also, something that occurred to me while writing the code for it - KWin
replaces the window manager on the current screen only and it is
possible to code the window manager chooser to start the replacing window
manager on any screen (assuming it has --screen argument or something
like that)
2022-12-09 10:21:27 +02:00
Ivailo Monev
eba0c48859 generic: adjust to KToolInvocation changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 06:36:46 +02:00