[plug] Multiple Xservers/prev kde question

Matt Kemner zombie at wasp.net.au
Thu Mar 23 09:13:24 WST 2000


On Wed, 22 Mar 2000, William Kenworty wrote:

> Your not the only one Dez, It was on my list of things to do.  Now I can do it,
> the next question is:  Is there an easy way to get it to use the next available
> Xserver without scripting (prob put it in the startx script)

Shouldn't be too difficult to get startx to check for existing lockfiles
(eg /tmp/.X0-lock) and use the next available display number if a lockfile
exists.

I've also found that sometimes the DISPLAY variable doesn't get set
properly in my rxvt's, so I fixed that by adding

export DISPLAY=`who am i|sed 's,\(.*(\)\(.*\)\().*\),\2,'`

to my profile.

 - Matt





More information about the plug mailing list