Skip to content

Commit

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

* Double quotes

---------

Co-authored-by: Sebastian Jahr <sebastian.jahr@picknik.ai>
(cherry picked from commit 2fa4667)

Co-authored-by: Stephanie Eng <stephanie-eng@users.noreply.github.com>
  • Loading branch information
mergify[bot] and stephanie-eng authored Sep 14, 2023
1 parent 76296af commit b679dd8
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 b679dd8

Please # to comment.