 |
 |
Using XDarwin with Apple's X11?
|
 |
|
 |
|
Senior User
Join Date: Apr 2000
Location: Woodridge, IL
Status:
Offline
|
|
Well, like many others I've installed Apple's X11. However, I've discovered that for some things (KDE in particular), I actually prefer the fullscreen mode and other window managers. Is there any way to use the old XDarwin program with Apple's X11 implementation so I can run full screen or from Darwin, etc? I tried to simply launch XDarwin (restored from a backup), but no dice - ran for a little bit and then died with no warning.
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status:
Offline
|
|
Originally posted by diamondsw:
Well, like many others I've installed Apple's X11. However, I've discovered that for some things (KDE in particular), I actually prefer the fullscreen mode and other window managers. Is there any way to use the old XDarwin program with Apple's X11 implementation so I can run full screen or from Darwin, etc? I tried to simply launch XDarwin (restored from a backup), but no dice - ran for a little bit and then died with no warning.
Well, I can run both after each other but of course not at the same time. This is what I did.
1. mv ~/.xinitrc ~/.xinitrc-xdarwin
2. start X11
3. quit X11
4. cp ~/.xinitrc-xdarwin ~/.xinitrc
5. start XDarwin
6. quit XDarwin
7. rm .xinitrc
So basically keep a copy of your .xinitrc file around for XDarwin to work, but never have it there when you want to run X11.
|
|
•
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2000
Location: Woodridge, IL
Status:
Offline
|
|
Well, my problem is XDarwin doesn't seem to work at all, even with my original xinitrc from before. For one thing, I don't know if I have twm or anything but Apple's window manager.
Also, there was a cool hint posted to www.macosxhints.com today to allow xinitrc to fire up the right window manager, so you can just launch whichever one you want.
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status:
Offline
|
|
Originally posted by diamondsw:
Also, there was a cool hint posted to www.macosxhints.com today to allow xinitrc to fire up the right window manager, so you can just launch whichever one you want.
Thanks for the tip. Saw it too just a couple of minutes ago. Here it is:
Code:
Make sure your .xinitrc shell uses sh or bash if you choose to use this code snippet. Replace your window manager invocation in .xinitrc with:
pid=$(cat /tmp/.X0-lock)
if [ $pid -ne 0 ] ; then
isxdarwin=$(ps -p $pid | grep XDarwin)
isxdarwin=$?
if [ $isxdarwin -eq 0 ] ; then
# we've got XDarwin ...
twm &
#/sw/bin/blackbox &
else
# We've probably got native X11
/usr/X11R6/bin/quartz-wm &
fi
fi
|
|
•
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|