From 6d98e56c55f3dab9ea8dfee1fa8e879f928abba5 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 9 Sep 2015 16:31:07 +0200 Subject: [PATCH] run: Never propagate DISPLAY if X socket not requested This is just confusing. --- lib/xdg-app-helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/xdg-app-helper.c b/lib/xdg-app-helper.c index 6d3703ffe..f3057a251 100644 --- a/lib/xdg-app-helper.c +++ b/lib/xdg-app-helper.c @@ -2199,6 +2199,10 @@ main (int argc, xunsetenv ("DISPLAY"); } } + else + { + xunsetenv ("DISPLAY"); + } /* Bind mount in the Wayland socket */ if (wayland_socket != 0)