kdelibs/kinit/README.autostart
Ivailo Monev 1ac69ccc74 kdecore: drop unused startup condition feature
there are other conditions that are checked tho like the allowed
environment but this one is Katana specific and unused so

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 05:02:58 +03:00

39 lines
1.4 KiB
Text

KDE SESSION AUTOSTART
=====================
KDE session startup occurs in the following sequence:
Window manager startup
Autostart phase 1
Session restoration
Autostart phase 2
Applications may be scheduled to be automatically run at KDE session startup
in either autostart phase 1 or phase 2. Autostart phase 1 is the original
autostart phase; phase 2 was introduced in KDE 3. To run in either phase, an
application's .desktop file must be located in a KDE autostart directory such
as $KDEDIR/share/autostart or $KDEHOME/share/autostart. The .desktop file can
contain the following optional entries to control its autostart:
X-KDE-autostart-phase = phase
phase = 1 or 2
Starts the application in the autostart phase specified by 'phase'.
If this entry is missing or 'phase' < 1, 'phase' defaults to 1. If
'phase' > 2 the application will not be autostarted since the specified
autostart phase will never be reached.
Hidden = true
Disables autostarting the application.
KUniqueApplication and session restoration
------------------------------------------
If KUniqueApplication applications are autostarted before they are restored
from the previous session, they will never see the session restoration command.
So if you need to autostart a KUniqueApplication which may also be restored
in session restoration, you should schedule it for autostart in phase 2.