Skip to content

Commit

Permalink
Use $DISPLAY rather than assuming :0 (#2049)
Browse files Browse the repository at this point in the history
* Use $DISPLAY rather than assuming :

* Double quotes

---------

Co-authored-by: Sebastian Jahr <[email protected]>
(cherry picked from commit 2fa4667)
  • Loading branch information
stephanie-eng authored and mergify[bot] committed Sep 14, 2023
1 parent 76296af commit 384b6a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moveit_configs_utils/moveit_configs_utils/launches.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from launch import LaunchDescription
from launch.actions import (
DeclareLaunchArgument,
Expand Down Expand Up @@ -237,7 +239,7 @@ def generate_move_group_launch(moveit_config):
parameters=move_group_params,
extra_debug_args=["--debug"],
# Set the display variable, in case OpenGL code is used internally
additional_env={"DISPLAY": ":0"},
additional_env={"DISPLAY": os.environ["DISPLAY"]},
)
return ld

Expand Down

0 comments on commit 384b6a9

Please sign in to comment.