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

List:       kde-core-devel
Subject:    Re: broken multihead support?
From:       Waldo Bastian <bastian () kde ! org>
Date:       2001-02-22 0:07:33
[Download RAW message or body]

On Wednesday 21 February 2001 01:06, Stefan Schimanski wrote:
> Hi,
>
> I'm running a two head non-xinerama configuration and was used to start
> both kicker and kdesktop manually on the second display. After the
> kdelibs/kdebase patches were applied to make them multihead aware they seem
> to refuse to start at all an quit with
>
> Aborting. $DISPLAY is not set.
> ERROR: KUniqueApplication: Pipe closed unexpected.
>
> This message is created by the dcopclient because DISPLAY seems to be unset
> in that context.

/kdebase/kicker/core/main.cpp around line 130 does a DISPLAY putenv. What 
does it set there? Does it get there?

Does the attached patch work?

> I've set DISPLAY to ":0" and even KDE_MULTIHEAD to "true". KDE_DISPLAY is
> unset. Is there anything I do completely wrong here?

You can disable multihead by putting
[X11]
disableMultihead=true

in kcmdisplayrc

But that's only working around the problem of course.

Cheers,
Waldo
-- 
bastian@kde.org | SuSE Labs KDE Developer | bastian@suse.com

["kicker_mh.patch" (text/x-c++)]

Index: main.cpp
===================================================================
RCS file: /home/kde/kdebase/kicker/core/main.cpp,v
retrieving revision 1.15
diff -u -b -r1.15 main.cpp
--- main.cpp	2001/02/18 06:54:04	1.15
+++ main.cpp	2001/02/21 23:59:44
@@ -110,11 +110,12 @@
 	    kicker_screen_number = DefaultScreen(dpy);
 	    int pos;
 	    QCString display_name = XDisplayString(dpy);
+
 	    XCloseDisplay(dpy);
 	    dpy = 0;
 
-	    if ((pos = display_name.findRev('.')) != -1)
-		display_name.remove(pos, 10);
+            // strip the screen number from the display
+            display.replace(QRegExp("\\.[0-9]+$"), "");
 
 	    QCString env;
 	    if (number_of_screens != 1) {


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

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