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

CAYW picker makes Zotero to the frontmost app #2747

Open
expnn opened this issue Jan 11, 2024 · 7 comments
Open

CAYW picker makes Zotero to the frontmost app #2747

expnn opened this issue Jan 11, 2024 · 7 comments
Labels

Comments

@expnn
Copy link

expnn commented Jan 11, 2024

Debug log ID

2TZIF2JB-refs-apse/6.7.143-6

What happened?

In a program, such as a terminal emulator or Chrome, initiating an HTTP request ('http://localhost:23119/better-bibtex/cayw?format=latex') brings up the picker. Retrieving and selecting the desired references in this picker causes Zotero to be activated as the frontmost application. This is not user-friendly for document editing.

It is expected that after the picker exits, the frontmost application should reset to the original one.

@retorquere
Copy link
Owner

This is not under my control. I can request zotero to put up the picker, and I get the results back, but I can't influence what zotero does when you complete the pick. The only workaround is to minimize zotero after the pick, which you can do using url query parameter minimize=true.

@expnn
Copy link
Author

expnn commented Jan 11, 2024

Unfortunately, it does not work in macOS with the minimize=true query parameter.

@retorquere
Copy link
Owner

It does for me (I'm on Sonoma). Does zotero minimize if you type this in the terminal and make a pick?

curl -v 'http://127.0.0.1:23119/better-bibtex/cayw?format=latex&minimize=true'

@retorquere
Copy link
Owner

retorquere commented Jan 12, 2024

If you open Tools -> Developer -> Run Javascript, paste in

Zotero.getMainWindow().minimize()

and click Run, does Zotero minimize?

@retorquere
Copy link
Owner

Without further input I will have to close the issue.

@expnn
Copy link
Author

expnn commented Jan 24, 2024

It indeed minimizes the Zotero window with the minimize=true query parameter. After minimizing Zotero, it remains as the frontmost application. We lose control of the original program due to this behavior.
The attached GIF shows this behavior.
20240124_101424

@retorquere
Copy link
Owner

I'll ask the Zotero developers but this isn't something under my control.

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

No branches or pull requests

2 participants