e_main: removed X11 DISPLAY environment variable set/get codes 00/69700/3
authorGwanglim Lee <gl77.lee@samsung.com>
Mon, 16 May 2016 10:42:11 +0000 (19:42 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 16 May 2016 10:47:30 +0000 (19:47 +0900)
Change-Id: Ief2c5c09c973de3ca33347a67c232b04294a730a

src/bin/e_main.c

index 8d4372c..f1011da 100644 (file)
@@ -766,18 +766,12 @@ _e_main_shutdown_push(int (*func)(void))
 static void
 _e_main_parse_arguments(int argc, char **argv)
 {
-   char *s = NULL;
    int i = 0;
 
    /* handle some command-line parameters */
    for (i = 1; i < argc; i++)
      {
-        if ((!strcmp(argv[i], "-display")) && (i < (argc - 1)))
-          {
-             i++;
-             e_util_env_set("DISPLAY", argv[i]);
-          }
-        else if (!strcmp(argv[i], "-good"))
+        if (!strcmp(argv[i], "-good"))
           {
              good = EINA_TRUE;
              evil = EINA_FALSE;
@@ -844,27 +838,6 @@ _e_main_parse_arguments(int argc, char **argv)
           }
      }
 
-   /* fix up DISPLAY to be :N.0 if no .screen is in it */
-   s = getenv("DISPLAY");
-   if (s)
-     {
-        char *p, buff[4096];
-
-        if (!(p = strrchr(s, ':')))
-          {
-             snprintf(buff, sizeof(buff), "%s:0.0", s);
-             e_util_env_set("DISPLAY", buff);
-          }
-        else
-          {
-             if (!strrchr(p, '.'))
-               {
-                  snprintf(buff, sizeof(buff), "%s.0", s);
-                  e_util_env_set("DISPLAY", buff);
-               }
-          }
-     }
-
    /* we want to have been launched by enlightenment_start. there is a very */
    /* good reason we want to have been launched this way, thus check */
    if (!getenv("E_START"))