Commit graph

18 commits

Author SHA1 Message Date
Ivailo Monev
c45dc296ab ksmserver: remove debugging bits
"KSMSERVER_STARTUP_DEBUGl" is not defined btw, drat?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-10 19:58:37 +03:00
Ivailo Monev
5d2fc37272 ksmserver: prepare for klauncher changes
doubles as performance optimization by reusing the already created
interface (klauncherSignals member)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-08 05:49:36 +02:00
Ivailo Monev
dd35263d37 ksmserver: set the default debug area
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-07 10:21:07 +02:00
Ivailo Monev
f00e4c99b3 ksmserver: process events until kded second phase is done
now that phase 2 is properly done (see
86082941ab933b36fb7df267f3abd2625757f4ba in kdelibs repo) it could
block for a few seconds

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-26 05:13:00 +02:00
Ivailo Monev
4a34d42786 ksmserver: kill window manager before cleanup
the window manager itself may want to do something session management
related (KWin does) and as such ksmserver has to be in operational state
before the window manager is killed

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-15 01:54:19 +02:00
Ivailo Monev
7fc137c6f2 ksmserver: move process launching code to startup source file
note that connecting to signals after the process is started (which is also
auto-deleted) as was done in KSMServer::launchWM() could result in a race

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-15 01:28:27 +02:00
Ivailo Monev
4560049c4a ksmserver: startup optimization
QProcess::waitForStarted() will wait up 4000s but may return before

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 10:56:54 +02:00
Ivailo Monev
465db03878 ksmserver: do not attempt to run programs from autostart directory
the spec does not mention that programs should be placed there, only
.desktop files (which klauncher already handles). for reference:
https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-04 09:07:50 +02:00
Ivailo Monev
881a427576 generic: rework startup to no create a shell script
by the time ksplash gets the X11 events for startup phases the startup
process is (and should be) done, especially after the display
configuration is done and the monitor is ready to output thus ksplash
does not really indicate much

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-03 11:29:28 +02:00
Ivailo Monev
ad4753db4a ksmserver: start kded service in autostart zero phase
org.kde.kded service is now not started by kdeinit4 (the program that owns
org.kde.klauncher) nor by KDateTime (indirectly by KSystemTimeZones) and
that was the assumption in KSMServer. note that there is no emission for
kded phase done from ksmserver which ksplash checks for

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-25 01:46:10 +03:00
Ivailo Monev
06a7d81327 generic: make use of KUser and KUserGroup
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-10 22:17:43 +03:00
Ivailo Monev
9309e637bf ksmserver: use qt4_generate_dbus_interface() macro to generate D-Bus interface
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-02 19:22:05 +03:00
Ivailo Monev
e1c102d439 generic: remove checks for system headers that should be present
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-23 16:21:57 +03:00
Ivailo Monev
eb69384380 ksmserver: indent switch cases in KSMServer::resumeStartupInternal()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-03 17:05:42 +03:00
Ivailo Monev
4abe1ff384 generic: remove unused and fix some configuration checks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-01 18:44:39 +03: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
840c8a25cc generic: make changes required for building against katie 2015-08-12 13:11:16 +03:00
Ivailo Monev
a7fd791926 initial import 2014-11-13 19:30:51 +02:00