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

image_viewer open in background by default? #2559

Open
ndevenish opened this issue Nov 28, 2023 · 5 comments
Open

image_viewer open in background by default? #2559

ndevenish opened this issue Nov 28, 2023 · 5 comments

Comments

@ndevenish
Copy link
Member

Is there any compelling reason not to do this?

Raised by @jbeilstenedmands

@graeme-winter
Copy link
Contributor

i.e. when you type dials.image_viewer it releases the terminal? Or we put in the tutorials

dials.image_viewer <stuff> &

I understand why this was raised, the terminal being busy is a frequently raised workshop problem

@jbeilstenedmands
Copy link
Contributor

Yes I raised this as we often see people stumbling on this in tutorials. In my opinion I think it would be better if this happened automatically, rather than having to explain another linux feature to new learners.

@ndevenish
Copy link
Member Author

i.e. when you type dials.image_viewer it releases the terminal?

Yes, explicitly this. I don't think the output is ever really useful except for crashes, which we can probably pass through if it happens on launch.

@dagewa
Copy link
Member

dagewa commented Nov 28, 2023

Agree. See also dials.rlv

@dagewa
Copy link
Member

dagewa commented Dec 20, 2023

How do we actually do this though? Adding & to the relevant lines in the dials.image_viewer dispatcher certainly works:

  exec "$LIBTBX_PYEXE" "$LIBTBX_BUILD/../modules/dials/src/dials/command_line/image_viewer.py" &

and

  exec "$LIBTBX_PYEXE" "$LIBTBX_BUILD/../modules/dials/src/dials/command_line/image_viewer.py" "$@" &

but this file is auto-generated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants