Description:
Show the <guilabel>Restart X Server</guilabel>/<guilabel>Close Connection</guilabel> action in the greeter.
-Key: Preloader
-Type: string
-Default: ""
-User: greeter-c
-Instance: */KDE_BINDIR "/preloadkde"
-Update: upd_preloader
-Comment: &
-Description:
- A program to run while the greeter is visible. It is supposed to preload
- as much as possible of the session that is going to be started (most
- probably).
-
Key: Theme
Type: string
Default: ""
}
}
-static void
-upd_preloader(Entry *ce, Section *cs ATTR_UNUSED)
-{
- if (ce->written) { /* implies oldkde != 0 */
- char *oldpl;
- ASPrintf(&oldpl, "%s/bin/preloadkde", oldkdepfx);
- if (!strcmp(ce->value, oldpl))
- ce->value = (char *)KDE_BINDIR "/preloadkde";
- free(oldpl);
- }
-}
-
CONF_GEN_ENTRIES
#include <kcrash.h>
#include <kglobalsettings.h>
#include <kcomponentdata.h>
-#include <kprocess.h>
#include <kconfig.h>
#include <kstandarddirs.h>
setupModifiers(dpy, _numLockStatus);
secureDisplay(dpy);
- KProcess *proc = 0;
if (!_grabServer) {
gSendInt(G_SetupDpy);
gRecvInt();
cmd = G_Greet;
}
- KProcess *proc2 = 0;
app.markBusy();
FDialog *dialog;
#ifdef XDMCP
_autoLoginUser.isEmpty())
_autoLoginDelay = 0;
dialog = new KThemedGreeter(themer);
- if (*_preloader) {
- proc2 = new KProcess;
- *proc2 << _preloader;
- proc2->start();
- }
}
QObject::connect(dialog, SIGNAL(ready()), &app, SLOT(markReady()));
app.enableSendInteract();
rslt = dialog->exec();
debug("left event loop\n");
delete dialog;
- delete proc2;
#ifdef XDMCP
switch (rslt) {
case ex_greet:
KGVerify::done();
- delete proc;
delete themer;
unsecureDisplay(dpy);