Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Using XDarwin with Apple's X11?

Using XDarwin with Apple's X11?
Thread Tools
Senior User
Join Date: Apr 2000
Location: Woodridge, IL
Status: Offline
Reply With Quote
Jan 20, 2003, 01:17 AM
 
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
Reply With Quote
Jan 20, 2003, 07:28 AM
 
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
Reply With Quote
Jan 20, 2003, 02:31 PM
 
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
Reply With Quote
Jan 21, 2003, 03:39 AM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:32 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2