Commit graph

45 commits

Author SHA1 Message Date
Ivailo Monev
e637b6dcdb kcontrol: do not change the window manager until the next session
for various reasons

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 13:55:58 +03:00
Ivailo Monev
ae3d5e62cb plasma: remove redundant method
the window manager should probably not be changed if there are active
applications (i.e. until the next login in most cases) to begin with

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 12:22:29 +03:00
Ivailo Monev
3e5dfaa22b ksmserver: drop it and move session initialization to plasma-desktop
everything except the actual session management, second time ksmserver
starts crashing as I work on something for no reason and is time for it
to be done anew as there were quite some unsafe bits in it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-07 02:33:19 +03:00
Ivailo Monev
9d5cc8fed6 generic: remove redundant Q_OS_UNIX definition checks
always defined now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-15 09:23:17 +02:00
Ivailo Monev
29aac779a2 kcontrol: drop browser support of componentchooser
see 387bdaa93fd6adb0cd8a930454e3be578fa5fdc0 in the kdelibs repo, how a
link will be opened depends on a few things now - the MIME type and what
method is used for opening the URL. if KRun is used the MIME type will
be detetermined and the prefered service for it will be launched, if
KToolInvocation is used first the preferred service for "text/html" will
be attempted with fallback to kde-open and xdg-open which solidifies the
behaviour of "mimetype-determination-in-calling-application" (see
kdelibs/kdecore/sycoca/kprotocolinfo.cpp)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-31 21:31:09 +03:00
Ivailo Monev
7b8bc6b8ef generic: use the new public KTimerDialog
see the following commit in kdelibs repo:
e0d476372cd6a39a01cb8b70f31192e4d2d540c8

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 15:42:35 +03:00
Ivailo Monev
850c98cc3d kcontrol: convert krdb to standalone program
fixes some race-conditions, for reference:
9ed7286504

also the exit() call in case of failure to open the temporary file would
exit the program calling runRdb() (systemsettings for example) with
status 0 (normal, when an error ocurred), that is no longer the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 08:04:16 +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
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
24e21ea89d kcontrol: remove redundant KToolInvocation::klauncher()->reparseConfiguration() call
the terminal application config option does not affect klauncher

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 04:00:43 +02:00
Ivailo Monev
4329ee885b kcontrol: update toolTip and whatsThis properties in componentchoser module
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-15 14:40:36 +03:00
Ivailo Monev
0dda4acb2c generic: prepare for new kemail library
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-15 04:14:27 +03:00
Ivailo Monev
936c69c827 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-14 16:19:24 +03:00
Ivailo Monev
16f6277c1a kcontrol: do not specify compiz plugins
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 20:13:18 +02:00
Ivailo Monev
7430fe2a78 kcontrol: window manager chooser fixes
the window manager process was not detached thus killed once systemsettings
is closed, the revert to previous option was reverting to kwin instead of
the previous window manager

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-26 19:58:12 +02:00
Ivailo Monev
beca0bdeb5 generic: fix regressions since f1cfe7bdba
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-03 18:06:45 +00:00
Ivailo Monev
591b538337 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:13:13 +00:00
Ivailo Monev
af45159765 generic: replace forward declarations with headers inclusions
this was done with namefsck script from Katie, solves namespace issues

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-05 02:36:36 +00:00
Ivailo Monev
4be986107b generic: various cleanups
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-09-01 16:35:37 +00:00
Ivailo Monev
0b328b7563 generic: mostly KWin auditing
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-09-01 16:17:20 +00:00
Ivailo Monev
4ba4868aed kcontrol: add XFWM4 as choice for Window Manager
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-09-01 04:09:48 +00:00
Ivailo Monev
2839231a57 kcontrol: make kwin_gles available choice via the WMs KCM
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2016-08-07 21:12:44 +00:00
Ivailo Monev
f1cfe7bdba generic: replace KProcess with QProcess where feasable
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-30 16:22:26 +00:00
Ivailo Monev
18a7b9c1a2 generic: build system cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-06 13:03:02 +02:00
Ivailo Monev
713324011a generic: stop using obsolete code paths 2015-10-28 05:39:38 +02:00
Ivailo Monev
2baf4467d1 generic: major build system cleanup 2015-09-01 04:37:19 +03:00
Ivailo Monev
840c8a25cc generic: make changes required for building against katie 2015-08-12 13:11:16 +03:00
Ivailo Monev
eac99cb4c4 kcontrol: add Marco window manager support to component chooser 2015-07-25 14:43:32 +03:00
Ivailo Monev
f10f3003a2 generic: fixup 2015-05-20 17:52:21 +00:00
Ivailo Monev
762802adcf generic: remove some unused private definitions 2015-05-20 13:37:43 +00:00
Ivailo Monev
c433e4502a generic: adjust for use with CMake moc 2015-02-27 09:28:46 +00:00
Ivailo Monev
163b7d6e03 Revert "generic: change system settings and kcontrol grouping (part 1)"
This reverts commit 726e6c5213.
2015-01-23 03:04:52 +00:00
Ivailo Monev
726e6c5213 generic: change system settings and kcontrol grouping (part 1) 2015-01-22 04:52:59 +00:00
Ivailo Monev
24b6d92809 changed bash scripts shebangs 2014-11-15 05:48:13 +02:00
Ivailo Monev
1e70ec3391 removed windows stuff (dirty) 2014-11-15 05:21:19 +02:00
Ivailo Monev
8b8cf26e2c merge kcontrol files from kde-runtime 2014-11-15 03:14:34 +02:00