[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix handling empty $DISPLAY env var

noreply at xfce.org noreply at xfce.org
Mon Dec 18 02:41:52 CET 2017


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit fa0c839722244e88ae0db3bcd40a3af7b4768bee
Author: Igor <f2404 at yandex.ru>
Date:   Sun Dec 17 20:40:45 2017 -0500

    Fix handling empty $DISPLAY env var
    
    It may happen under Wayland.
    Fixes bug #14092
---
 terminal/terminal-gdbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/terminal/terminal-gdbus.c b/terminal/terminal-gdbus.c
index ee7a0ab..bb30a9f 100644
--- a/terminal/terminal-gdbus.c
+++ b/terminal/terminal-gdbus.c
@@ -57,7 +57,7 @@ terminal_gdbus_display_name (void)
 
   display_name = g_getenv ("DISPLAY");
   if (G_UNLIKELY (display_name == NULL))
-    return "";
+    display_name = "";
 
   name = g_strdup (display_name);
   period = strrchr (name, '.');

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list