Alfredo Braunstein wrote:

> Kuba Ober wrote:
> 
>> There's no reason for a globally fixed filename. At least, the file
>> name containing the user name or uid. That's what DCOP does in KDE.
> 
> The file name containing only the user name or uid doesn't forbid
> another user to take it first.
> 
> If DCOP allows another user to forbid me from running it then I
> think that I'm on the safe side by saying that it's broken.
> 
> Alfredo

Doesn't Kuba mean

/tmp/lyx --- owned by you

Thereafter, only you can insert stuff (other dirs, files, pipes) in 
/tmp/lyx. So, safe.

Different instance of lyx would insert unique dirs (based on pid) 
containing unique dirs for each buffer --- only change there is that 
the ROOT is /tmp/lyx, not /tmp

Different _versions_ of lyx would have pipes
        /tmp/lyx/lyx-xyz.{in,out}

Seems safe to me.
We still have the same limitation that only one lyx instance can have 
pipes connected, so Kuba's suggestion is to move the pipes into 
        /tmp/lyx/lyx-pid/pipe.{in,out}

Still safe but some magic is needed to find them.

-- 
Angus

Reply via email to