From 301954763819ce26c994fd8e49e2c9ed1d531fe0 Mon Sep 17 00:00:00 2001 From: Claudio-Daniel Freire Date: Wed, 5 Oct 2011 15:58:49 -0300 Subject: [PATCH] Fix DISPLAY regex --- examples/Multicast/multicast_experiment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Multicast/multicast_experiment.py b/examples/Multicast/multicast_experiment.py index a064588d..95ce5f6c 100644 --- a/examples/Multicast/multicast_experiment.py +++ b/examples/Multicast/multicast_experiment.py @@ -769,7 +769,7 @@ if __name__ == '__main__': exp.plpass = getpass.getpass("Password for %s: " % (exp.pluser,)) # Fix some distro's environment to work well with netns - if re.match(r"[^:]*:\d+", os.environ['DISPLAY']): + if re.match(r"[^:]*:\d+$", os.environ['DISPLAY']): os.environ['DISPLAY'] += '.0' if not os.environ.get('XAUTHORITY'): os.environ['XAUTHORITY'] = os.path.join(os.environ['HOME'], '.Xauthority') -- 2.47.0