discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=f9d997980095c1eb3456379635ba81739fc2ee23

commit f9d997980095c1eb3456379635ba81739fc2ee23
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Feb 29 08:47:37 2016 -0500

    remove DISPLAY usage from E_IPC_SOCKET value
    
    pid should be enough here
    
    CID 1039791
---
 src/bin/e_ipc.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index aca762c..17f645a 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -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)

-- 


Reply via email to