Subject: pkg/16071: fix for kde2 printing problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <marcello.balduccini@ttu.edu>
List: netbsd-bugs
Date: 03/26/2002 16:01:34
>Number:         16071
>Category:       pkg
>Synopsis:       fix for kde2 printing problem
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 26 14:02:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Marcello Balduccini
>Release:        NetBSD 1.5.2
>Organization:
	Knowledge Representation Lab
	Dept. of Computer Science
	Texas Tech University
	Lubbock, TX
>Environment:
	System: NetBSD krlab.cs.ttu.edu 1.5.2 NetBSD 1.5.2 (KRLAB) #90: Thu Nov 8 16:56:56 CST 2001 marcy@krlab.cs.ttu.edu:/usr/src/sys/arch/i386/compile/KRLAB i386

	Architecture: i386


>Description:
	I have had reports that the previous fix - as of pr/15806 - does not
	work properly. The first time that KDE is started, it remains blocked
	during the startup process. After killing the X session and restarting
	KDE, everything seems to work correctly.
	
	The problem apparently appears on slower machines, and seems linked to
	the order in which processes are forked during KDE startup.
>How-To-Repeat:
	
>Fix:
	The solution consists in forcing KDE to fork processes in the correct
	order. This can be easily done by modifying again file
	/usr/X11R6/bin/startkde, from pkg kdebase2.



--- startkde.orig	Tue Mar 26 15:43:51 2002
+++ startkde
@@ -92,8 +92,15 @@
 
 # We set LD_BIND_NOW to increase the efficiency of kdeinit.
 # kdeinit unsets this variable before loading applications.
-LD_BIND_NOW=true kdeinit --no-kded +kcminit +knotify
+#LD_BIND_NOW=true kdeinit --no-kded +kcminit +knotify
+dcopserver
+sleep 5
 kded
+sleep 5
+kdeinit --no-kded --no-dcop
+kcminit
+knotify
 
 # finally, give the session control to the session manager
 # Syntax:   ksmserver [--restore] [--windowmanager <wm>]
>Release-Note:
>Audit-Trail:
>Unformatted: