Re: .X11-unix and the sticky bit
Re: .X11-unix and the sticky bit
- Subject: Re: .X11-unix and the sticky bit
- From: matt shultz <email@hidden>
- Date: Tue, 13 Apr 2004 17:55:39 -0400 (EDT)
Maybe so, but even apple's X11 fails to launch if there is an X server on
display 0. This whole issue go started because if I launch my xserver
without supplying a specific display it defaults to 0. While it is
running I cannot launch X11.app. If X11.app would just go ahead and take
display 1 then there would be less of a problem, but it doesn't.
m.
> You don't want to do this even if you were not having other problems.
> With fast user switching you could easily have another user using
> display 5. (The X server keeps trying different display numbers when
> it starts up till it finds and unused one.) The proper thing to do is
> to search the process list for your application. If your application
> is running, how do you know which display it is running on? I think
> the best thing to do is that when your application starts up it
> should save the contents of the DISPLAY environment variable to some
> user specific known location. For example, ~/.myCoolAppsDisplay. Then
> if the current user is running your application already, you just
> need to read ~/.myCoolAppsDisplay to find out which display this
> user's incarnation of your app is connected to. Much more robust.
>
> --Torrey
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.