zotero / zotero-standalone-build

Zotero client build utility
https://www.zotero.org/support/dev/client_coding/building_the_standalone_client
Other
120 stars 98 forks source link

Support minimize to tray on Linux #76

Open serovar opened 4 years ago

serovar commented 4 years ago

FireTray stopped working since version 5.0.78 and it's an abandoned addon, so it will probably not get any updates, so for now the suboptimal solution is to use a third party tool like AllTray or KDocker.

kupiqu commented 4 years ago

Zotero Tray (using KDocker) is not that suboptimal:

https://github.com/cyberalex4life/zotero-tray

I am quite happy with it.

I even modified zotero's desktop file for my $HOME user based on Zotero Tray:

[Desktop Entry]
Name=Zotero
Comment=Open-source reference manager
Exec=bash zotero-tray --url %u
Icon=/usr/lib/zotero/chrome/icons/default/default256.png
Type=Application
Categories=Office;Education;Literature
StartupNotify=true
MimeType=x-scheme-handler/zotero;ris;application/x-research-info-systems;application/x-endnote-refer;text/x-research-info-systems;text/application/x-research-info-systems;text/ris;ciw;isi;application/x-inst-for-Scientific-info;mods;application/mods+xml;rdf;application/rdf+xml;bib;bibtex;application/x-bibtex;text/x-bibtex;mrc;marc;application/marc;csl;vnd.citationstyles.style+xml

Finally, I added this desktop file to the autostart applications folder, so Zotero automatically starts in the system tray when I log in.

serovar commented 4 years ago

I set it to start in the system tray too with KDocker, but it is not a user-friendly solution, it closes Zotero if you close the window (instead of minimizing it to tray), and in the case of the script you linked, it's latest commit is from 2 years go, so fundamentally today it works, but tomorrow who knows.

I think an integrated solution (like in many other programs that support the tray natively) would be an overall better solution for the inexperienced user and for everyone in the long term.

kupiqu commented 4 years ago

I set it to start in the system tray too with KDocker, but it is not a user-friendly solution, it closes Zotero if you close the window (instead of minimizing it to tray)

For me to only problem is the close button, but I can remove the close button with a kwin rule for zotero.

and in the case of the script you linked, it's latest commit is from 2 years go, so fundamentally today it works, but tomorrow who knows.

It's a script, not much to update in a daily basis. If it didn't need update for 2 years, it means it's robust. If it fails at some point, you can always open an issue there. Or try to fix it. It's really not that complicated script.

My purpose was avoiding every user to reinvent the wheel here. I for one tried to set KDocker on Zotero and was unsuccessful because I did it differently (my way was successful in other applications but not for Zotero). So I thank Zotero Tray.

I think an integrated solution (like in many other programs that support the tray natively) would be an overall better solution for the inexperienced user and for everyone in the long term.

Sure. Not saying this closes the issue. Unfortunately it seems this is not possible for now because Firefox does not allow it.