[Zotero 7 beta] Invoking Firefox over Zotero uses non-default profile
Hello,
I had to recently switch to the beta version of Zotero as TLS 1.3 (default for Nextcloud) isn't supported by Zotero 6 due to using an older version of Firefox. The beta version works great with one exception: For some reason, when I click on any link within Zotero, it views the link in Firefox, however the instance of Firefox uses a non-default profile. It ignores the already existing Firefox instance running in background and invokes its own Firefox with its own profile instead. I'm not sure how and why Zotero does this, but checking about:support on the Firefox instance spawned by Zotero shows that a non-default profile is being used:
https://s3.amazonaws.com/zotero.org/images/forums/u12910717/uhdpx0yqbccijrqmb3lx.png (when Firefox is started over the terminal or some launcher)
https://s3.amazonaws.com/zotero.org/images/forums/u12910717/is3dgud9461lwj6k5gds.png (when Firefox is launched by Zotero)
Did anyone experience a similar issue?
Thanks in advance.
I had to recently switch to the beta version of Zotero as TLS 1.3 (default for Nextcloud) isn't supported by Zotero 6 due to using an older version of Firefox. The beta version works great with one exception: For some reason, when I click on any link within Zotero, it views the link in Firefox, however the instance of Firefox uses a non-default profile. It ignores the already existing Firefox instance running in background and invokes its own Firefox with its own profile instead. I'm not sure how and why Zotero does this, but checking about:support on the Firefox instance spawned by Zotero shows that a non-default profile is being used:
https://s3.amazonaws.com/zotero.org/images/forums/u12910717/uhdpx0yqbccijrqmb3lx.png (when Firefox is started over the terminal or some launcher)
https://s3.amazonaws.com/zotero.org/images/forums/u12910717/is3dgud9461lwj6k5gds.png (when Firefox is launched by Zotero)
Did anyone experience a similar issue?
Thanks in advance.
xdg-open
on Linux to open links, which is configured in the OS, so you should figure out why that opens links in a non-default profile.xdg-open
over the terminal, ex.xdg-open https://example.org
. Zotero 6 did not have this issue either.xdg-open
does not seem to be the culprit, and I didn't come across this issue using Zotero 6, and it also persists in the non-Flatpak native version, I can only assume that it's a Zotero 7 bug.Thanks @dstillman it solves the problem for me +1
I get the same behaviour (opening a new instance) if I run 'MOZ_LEGACY_PROFILES=1 xdg-open https://zotero.org/'.
Basically, Zotero needs to unset this variable (and probably MOZ_ALLOW_DOWNGRADE) before it launches any programs.
[Also, xdg-open is only used as the fallback launch option. Opening a link appears to ultimately be done by the GLib library, without involving xdg-open. AFAIK, this uses the same lookup method as xdg-open.]
Going to "about:profiles" and removing the "default" profile helped.
Briefly, a similar issue crops up in Windows too, when Firefox is the system PDF viewer and Zotero is configured to open PDFs there. Again, the problem is the MOZ_LEGACY_PROFILES env variable.