Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose an environment variable for config file lookup #337

Closed
chapulina opened this issue Dec 14, 2021 · 0 comments
Closed

Expose an environment variable for config file lookup #337

chapulina opened this issue Dec 14, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request OOBE 📦✨ Out-of-box experience

Comments

@chapulina
Copy link
Contributor

We currently only support looking up config files by absolute paths, or paths relative to the running directory. It would be convenient for downstream packages if users could reference their installed configs without knowing the full path.

Desired behavior

  1. A package installs several config files in, for example, install/share/package_name/gui_config
  2. Then it sets the IGN_GUI_CONFIG_PATH variable to that folder
  3. At runtime, users can load those config files from the command line with ign gui -c filename.config or ign gazebo --gui-config filename.config

Alternatives considered

We usually use environment variables for this kind of lookup path. One thing to consider is to have a generic path, such as IGN_GUI_RESOURCES, that can be reused for things other than config files.

Implementation suggestion

Look at how IGN_GAZEBO_RESOURCE_PATH is implemented, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OOBE 📦✨ Out-of-box experience
Projects
Archived in project
Development

No branches or pull requests

2 participants