jannessm / joplin-zotero-link

8 stars 5 forks source link

Links don't open zotero objects #10

Closed vonaviv closed 1 month ago

vonaviv commented 2 months ago

Hi,

I have a problem with opening links to zotero. I can create a link with z@ without problems. Then when I click on the link and if zotero is running I get the following error: image

If zotero is closed, then the link opens the app, but the linked object doesn't get opened and zotero is just opened at the default starting page.

I use Pop!_OS 22.04. I installed the plugin v1.1.1 from within Joplin v3.0.15. I hope there is a solution for this problem! Thanks!

Best, Vladyslav

emjaaa commented 1 month ago

Hi,

I have the same issue as described by @vonaviv using the following configuration

When Zotero is closed and I click the link in Joplin, Zotero opens but does not select the correct item. As I see it, it just displays the last view before it was closed.

@vonaviv are you also using the flatpak versions of Zotero and Joplin?

I also hope there is a solution ^-^

jannessm commented 1 month ago

Sadly, I cannot reproduce this error. It seems to me that your OS has issues with opening the zotero:// links. This has sadly, nothing to do with my code. If you find a solution, feel free to report your solutions here for other users!

vonaviv commented 1 month ago

@emjaaa , yes I had flatpack version of zotero. I have tried the debian version of zotero and it works now.

emjaaa commented 1 month ago

I found a way to use the flatpak version of Zotero to open zotero:// links. You have to allow the Zotero flatpak to access the D-Bus session Bus. Below is a small tutorial on how to do that:

  1. Install flatseal (if not already present)
  2. Open flatseal
    • if you have problems opening the application, try starting it with the following command:
       GSK_RENDERER=gl flatpak run com.github.tchx84.Flatseal
    • Source
  3. Select Zotero in the menu on the left
  4. Go to the Socket section and activate D-Bus session bus zotero_session_bus
  5. Restart Zotero

I hope this is helpful to someone finding this issue ^-^

The developers of the Zotero flatpak version are working on this issue. The propose an alternative fix here which should also be the default in the next versions.