Go Back   The macosxhints Forums > OS X Help Requests > UNIX - X11



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-13-2003, 01:15 AM   #1
wgscott
Major Leaguer
 
Join Date: Sep 2002
Posts: 349
Jaguar Trouble with X11 and multiple users?

On 4 separate machines I found that I could not use x11.app with any user account other than the one used to install the application.

I finally tracked the problem down to a file and directory in /tmp that is created when x11.app opens. These are supposed to be deleted when the application is quit or when you log out of the console (thus quitting the application). On my computers this wasn't happening.

Manually deleting the

/tmp/.X0-lock

and

/tmp/.X11-unix/

files and directory solved the problem, but I wanted to have this done automatically.

The way to do this is as follows:

Add a -LogoutHook switch to the console line of the /etc/ttys file. Then after -LogoutHook put in the absolute path to a shell script that contains the following:

#!/bin/csh
chmod a+w /tmp/.X0-lock
chmod -R a+w /tmp/.X11-unix
rm -f /tmp/.X0-lock
rm -f -R /tmp/.X11-unix
exit


The -LoginHook and -LogoutHook are documented here. This was pointed out to me by Gary Kerbaugh.

http://developer.apple.com/techpubs/...rocedures.html

I had to restart to get it to work but I imagine that there is a more elegant way.
wgscott is offline   Reply With Quote
Old 01-13-2003, 01:24 AM   #2
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,233
wgscott,

That's a good tip, thanks. I read your posts at the fink-users list and I'm glad you solved your problem.


Cheers...
sao is offline   Reply With Quote
Old 02-03-2003, 08:21 PM   #3
wgscott
Major Leaguer
 
Join Date: Sep 2002
Posts: 349
They broke the link

http://developer.apple.com/techpubs/.../BootingLogin/

or without frames:

http://developer.apple.com/techpubs/...ection_14.html

Last edited by wgscott; 02-03-2003 at 08:36 PM.
wgscott is offline   Reply With Quote
Old 07-30-2003, 09:07 PM   #4
wgscott
Major Leaguer
 
Join Date: Sep 2002
Posts: 349
They broke it again.

Here is the current link:

http://developer.apple.com/documenta...00981/CJBBAIAB
wgscott is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting 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

Forum Jump


All times are GMT -5. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.