[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Patch for "sleepy" 45xsession



Hi all,

I have put Knoppix on some USB flash drives and tested it on several systems. 
I noticed that on faster systems (boot time around one minute) there is no 
window manager for around 10 seconds after KDE is up and running.

I digged a little deeper and noticed that there are several "sleep" statements 
in 45xsession. First, 45xsession is sleeping for four seconds after ksplash 
is started and then for 25 seconds in a subshell where compiz is started. 
There were no comments in the skript about the sleep statements but I guess 
it was not the intention of the first sleep to make Knoppix look slow and of 
the second sleep to make Knoppix look broken...

I removed both sleep statements and now everything runs fast and works out of 
the box. I also replaced the command "compiz --replace" with "fusion-icon". 
First of all, there are users who find this whole compiz stuff distracting 
and fusion-icon allows them to switch it off permanently when using a 
persistent Knoppix image. Secondly, compiz really deserves the 0.7.x version 
number. There are still so many things so badly broken that I would not use 
it per default, even when the system might be able to run it theoretically.

Regards

Ronny (also very sleepy now)
--- 45xsession.orig	2008-05-08 21:53:04.000000000 +0200
+++ 45xsession	2008-05-08 21:54:19.000000000 +0200
@@ -526,8 +526,6 @@
  ksplash --theme Knoppix --nodcop
 fi
 
-sleep 4
-
 # Create automatic Desktop icons
 mkdesktophdicons
 
@@ -545,7 +543,7 @@
 
 # Fire up compiz in case we need it
 if [ -n "$USE_COMPIZ" ]; then
- ( sleep 25 ; exec compiz --replace ) &
+ ( exec fusion-icon ) &
 fi
 
 # finally, give the session control to the session manager

Reply to: