[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kdm
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2004-07-01 15:18:03
Message-ID: 20040701151803.B96209918 () office ! kde ! org
[Download RAW message or body]

CVS commit by ossi: 

add preloader hook. the target executable does not exist, yet, but seli
will handle it rsn.


  M +4 -0      ChangeLog   1.27
  M +10 -0     kfrontend/config.def   1.3
  M +7 -1      kfrontend/kgapp.cpp   1.10


--- kdebase/kdm/ChangeLog  #1.26:1.27
@@ -3,4 +3,8 @@
 if they affect the configuration.
 
+2004-07-01  Oswald Buddenhagen <ossi@kde.org>
+
+        * The greeter can now run a "session preloader"; option Preloader
+
 2004-04-15  Oswald Buddenhagen <ossi@kde.org>
 

--- kdebase/kdm/kfrontend/config.def  #1.2:1.3
@@ -1303,2 +1303,12 @@
  Show the "Restart X Server"/"Close Connection" action in the greeter.
 
+Key: Preloader
+Type: string
+Default: ""
+User: greeter-c
+Instance: */KDE_BINDIR "/preloadkde"
+Comment:
+ 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).
+

--- kdebase/kdm/kfrontend/kgapp.cpp  #1.9:1.10
@@ -117,5 +117,5 @@ void
 kg_main( const char *argv0 )
 {
-    KProcess *proc = 0;
+    KProcess *proc = 0, *proc2 = 0;
 
     static char *argv[] = { (char *)"kdmgreet", 0 };
@@ -154,4 +154,9 @@ kg_main( const char *argv0 )
         GRecvInt();
     }
+    if (*_preloader) {
+        proc2 = new KProcess;
+        *proc2 << _preloader;
+        proc2->start();
+    }
 
     GSendInt( G_Ready );
@@ -201,4 +206,5 @@ kg_main( const char *argv0 )
 
     delete proc;
+    delete proc2;
     UnsecureDisplay( dpy );
     restore_modifiers();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic