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

Obviate need to start plugins in user's ginga_config.py #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ejeschke
Copy link
Collaborator

@ejeschke ejeschke commented Feb 7, 2024

  • change gingawrapper to set autostart for plugins previously started in custom ginga_config.py
  • make them not appear in the optray
  • disable the PluginConfig from ginga v5

Description

This pull request changes the stginga wrapper to auto start the Zoom and Header plugins, which previously were auto started by writing a custom ginga_config.py. Furthermore, this hides them when in the Operations tray, so that they appear more like other "required" plugins. Finally, this disables the upcoming PluginConfig plugin in Ginga v5, so that stginga users cannot customize their plugins, except in the old way of modifying general.cfg or with a ginga_config.py.

- change gingawrapper to set autostart for plugins previously started
  in custom ginga_config.py
- make them not appear in the optray
- disable the PluginConfig from ginga v5
@@ -51,9 +51,11 @@ def run_stginga(sys_argv):
# new_argv[new_argv.index('-t') + 1] = 'qt'

# Auto start core global plugins
for gplgname in ('ChangeHistory', ):
for gplgname in ('ChangeHistory', 'Zoom', 'Header'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about this because I have wss_tools set up to use ginga_config.py downstream but I am not its maintainer anymore. So the least disruptive, the better. Is this really necessary?

Over there, we use different flavors of ginga_config.py dependending on the "operation mode":

https://github.com/spacetelescope/wss_tools/tree/master/wss_tools/quip/config

@pllim pllim modified the milestones: 1.5.0, 1.6.0 Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants