On Sat, 28 Feb 2015, Mattias Gaertner wrote:

Hi,

SimpleIPC under Linux always creates the pipe file under /tmp/.

packages/fcl-process/src/unix/simpleipc.inc

constructor TPipeClientComm.Create(AOWner: TSimpleIPCClient);

Var
 D : String;

begin
 inherited Create(AOWner);
 FFileName:=Owner.ServerID;
 If (Owner.ServerInstance<>'') then
   FFileName:=FFileName+'-'+Owner.ServerInstance;
 D:='/tmp/'; // Change to something better later
 FFileName:=D+FFileName;
end;

Can this be made optional, for example to this:

constructor TPipeClientComm.Create(AOWner: TSimpleIPCClient);

begin
 inherited Create(AOWner);
 FFileName:=Owner.ServerID;
 If (Owner.ServerInstance<>'') then
   FFileName:=FFileName+'-'+Owner.ServerInstance;
 if FFileName[1]<>'/' then
   FFileName:='/tmp/'+FFileName;
end;


Should I create a mantis issue?

Yes. I planned in fact 2 modes: global, and local. Local was meant to be user-specific.

Since then I think using d-bus is the better approach. I have components that enable communication through d-bus. You can't find a linux box without it anyway (don't know about BSDs or Darwin)

Michael.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to