Re: X11 and KDE [on top of OS X]
Re: X11 and KDE [on top of OS X]
- Subject: Re: X11 and KDE [on top of OS X]
- From: Viv Kendon <email@hidden>
- Date: Thu, 14 Apr 2005 00:47:46 +0100 (BST)
On Tue, 12 Apr 2005, SA wrote:
I am running apple X11 in fullscreen mode - that is when the mouse doesn't
work.
I can't get focus on any window unless it has just been launched and mouse
clicks just start konqueror again and again!
On Tuesday 12 Apr 2005 18:36, Craig Sutherland wrote:
On Apr 12, 2005, at 10:46 AM, SA wrote:
Ok - disaster
I tried the suggestion below and I now have nothing working:
If I use apple's X11 I get kde but the mouse doesn't work - I can't
select any
windows or use anything except the bar at the bottom of the screen -
There is more than one way to do what you want to do, I will
describe what works for me (actually with fink's Xorg, but
I've done it with fink's XFree86 and with a binary install
of same too).
Try reinstalling fink's Xfree86 again, without removing any
of the Apple X11. It should work to run both at once, but
you want to do this with the main X11 stuff from the later
version (fink's). This should fix your problems with kde if
it worked properly with XFree86 (it needs to run with the
same version of X it was compiled against). It will
overwrite the Apple stuff when you reinstall, leaving just
the Apple Xquartz and quartz-wm that are not part of
XFree86, and the X11 application [note below].
First the motivation: Matlab is indeed a finicky beast in
its current incarnation, unlike most applications it uses
both Aqua and X to function fully. To get Matlab to work, I
run Apple's X11 application in rootless mode, then start
Matlab by issuing the following command in the xterm window
(not Terminal). I could not get this to work from the X11
menu, the environment wasn't right somehow:
/Applications/MATLAB701/bin/matlab
I also run (at the same time) XDarwin from XFree86 or Xorg
in full screen mode (not with kde myself, but this is what
you want to do). You have to set this to run on a different
DISPLAY from the Apple X11. Before running XDarwin, issue
the following from a command prompt:
defaults write org.xfree86.XDarwin Display 1
This tells XDarwin to always start on DISPLAY :1 instead of
DISPLAY :0, which is occupied by Apple's X11. You only have
to do this once, the setting sticks in your preferences.
You will also need some tricks in your ~/.xinitrc to do the
right things when you start up the different X environments.
Mine contains roughly the following, there are other ways to
do this too:
#Make sure to get a fink path:
. /sw/bin/init.sh
#Want the xterm in both cases:
xterm -n Local -T Local -bg lemonchiffon -sb -sl 1000 -fn
9x15 -geometry 80x40+5+5 -ls &
#Record how we just started up: (useful for debugging)
echo $0 &
echo display=$DISPLAY &
#WARNING: this only works if you set XDarwin to run on display 1 separately:
#defaults write org.xfree86.XDarwin Display 1
if [[ "$DISPLAY" = ":0" ]]; then
#Assume we are starting Apple's X11
exec quartz-wm
exit
else
#Do full screen XDarwin stuff
autocutsel & # fix mozilla paste from aqua
xsetroot -solid SeaGreen & #in case Xbackphoto is missing
/sw/bin/qiv --root_s .fvwm/Xbackphoto.jpg &
xclock -geometry 100x100+914+658 &
exec /sw/bin/fvwm2 # replace with kde start up here in your case!
fi
With all this in place, you click on the X11 and XDarwin
Applications as you wish to start whichever X environment
you want, in whichever order you like.
Hope this helps. You will probably still have to tweak a
few settings here and there, and Matlab will still be
somewhat unstable, and will keep giving focus to the wrong
Matlab window, but that's a problem with the mac version of
Matlab...
cheers,
-- Viv
[note] This isn't the cleanest way, better is to copy the
two files in /usr/X11R6/bin to a safe place, wipe or move
aside the /usr/X11R6 and /etc/fonts, /etc/X11 dirs, then
reinstall and replace the two extra files...but you need to
be confident on the command line and with sudo for this.
Almost certainly for XFree86 you get away with just
reinstalling. For Xorg, the directory structure changed a
little, and reinstalling on top probably won't quite work
well enough.
------------------------------------------------
Dr Viv Kendon email@hidden
Quantum Information tel: 0113 343 3897
Physics & Astronomy University of Leeds
http://quantum.leeds.ac.uk/~viv
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden