remove DISPLAY usage from E_IPC_SOCKET value
pid should be enough here CID 1039791
This commit is contained in:
parent
cf0d1eba9c
commit
f9d9979800
|
@ -17,7 +17,7 @@ EINTERN int
|
|||
e_ipc_init(void)
|
||||
{
|
||||
char buf[4096], buf2[128], buf3[4096];
|
||||
char *tmp, *user, *disp, *disp2, *base;
|
||||
char *tmp, *user, *base;
|
||||
int pid, trynum = 0, id1 = 0;
|
||||
struct stat st;
|
||||
|
||||
|
@ -71,15 +71,6 @@ e_ipc_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
disp = getenv("DISPLAY");
|
||||
if (!disp) disp = ":0";
|
||||
else
|
||||
{
|
||||
/* $DISPLAY may be a path (e.g. Xquartz), keep the basename. */
|
||||
disp2 = strrchr(disp, '/');
|
||||
if (disp2) disp = disp2 + 1;
|
||||
}
|
||||
|
||||
e_util_env_set("E_IPC_SOCKET", "");
|
||||
|
||||
pid = (int)getpid();
|
||||
|
@ -96,8 +87,8 @@ e_ipc_init(void)
|
|||
(S_IRWXU | S_IFDIR)))
|
||||
{
|
||||
#ifdef USE_IPC
|
||||
snprintf(buf3, sizeof(buf3), "%s/%s-%i",
|
||||
buf, disp, pid);
|
||||
snprintf(buf3, sizeof(buf3), "%s/%i",
|
||||
buf, pid);
|
||||
_e_ipc_server = ecore_ipc_server_add
|
||||
(ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL);
|
||||
if (_e_ipc_server)
|
||||
|
|
Loading…
Reference in New Issue