From 41272b1f33b8a935d57f936f4f32afa3203e6f51 Mon Sep 17 00:00:00 2001 From: Wonguk Jeong Date: Mon, 5 Jan 2015 15:14:50 +0900 Subject: [PATCH] remove unnecessary code about X Display There is no HAVE_X11 macro anywhere. And, display setting should be done system-widely Change-Id: I4d15fb1573f0e675e453e7cd01fcd13c031a0a74 Signed-off-by: Wonguk Jeong --- server/src/pkgmgr-server.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/src/pkgmgr-server.c b/server/src/pkgmgr-server.c index 49854f4..ca7dc0a 100644 --- a/server/src/pkgmgr-server.c +++ b/server/src/pkgmgr-server.c @@ -1775,16 +1775,6 @@ int main(int argc, char *argv[]) backend_info *ptr = NULL; int r; -#ifdef HAVE_X11 - // If DISPLAY is not set then let it default to :0 - // so we can remove hacks in the service file - // to set the env variable (which will blow up wayland) - // - // Passing overwrite as zero so it will not clobber an - // existing value - setenv("DISPLAY", ":0", 0); -#endif - DBG("server start"); if (argv[1]) { -- 2.7.4