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

Fix minimize-on-close for TB 52 on Linux #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rsjtdrjgfuzkfg
Copy link

@rsjtdrjgfuzkfg rsjtdrjgfuzkfg commented Jul 26, 2017

This PR attempts to fix #178, #175 and #172 – but is untested on Windows and old versions of Thunderbird. I'd welcome some feedback on that, as I don't have the time to do proper testing right now.

I consider it very likely that we don't need to observe titlebar-close anymore after merging this. It does not call goQuitApplication but window.close – at least in the versions of TB I looked at, but I'm not comfortable doing the removal without any tests on Windows.

Also, the maintainer might want to use a different version number after merging; I merely added something in order to distinguish built xpis from official releases.

This commit uses the close event handler in addition to existing code,
in order to properly suppress the window close event if closed through
the window manager. I'm unsure how the mechanism was intended to work,
so I left existing code in place although I assume that the existing
window close handler could get removed now.
@undera
Copy link

undera commented Aug 3, 2017

Hi,
Thanks for providing the fix. Can you share built file for extension, to try testing it?

@rsjtdrjgfuzkfg
Copy link
Author

@undera I don't have a full mozilla build environment set up, so my builds emit localization warnings and most likely cause various issues when run on a locale whose translation is not complete.

If still want a build: mintrayr-1.3.2+tb52fix.xpi.zip (unzip once to get the XPI to install, GitHub does not permit XPI attachments).

@undera
Copy link

undera commented Aug 3, 2017

Just as a tip - you can create a release on GitHub from your repo and it will allow XPI to be attached there. The original repo seems to be abandoned, I guess many people would enjoy your improvements.

@undera
Copy link

undera commented Aug 3, 2017

I installed it, but it does not help. My issue is that I see no tray icon at all. I see in processes that thunderbird is still running, so the "hiding" part works fine, just no tray icon appears.

@rsjtdrjgfuzkfg
Copy link
Author

rsjtdrjgfuzkfg commented Aug 3, 2017

@undera did it work with the previous version (when minimizing to tray through the menu)? I did not change anything in the actual minimization code, only fixed the trigger for Thunderbird.

What OS are you on? Version of Thunderbird? Are there messages in the error console?

Edit: Oh, and just in case: what locale are you on?

@undera
Copy link

undera commented Aug 3, 2017 via email

@dcervenkov
Copy link

@rsjtdrjgfuzkfg your fixed build indeed works for me. I'm on Ubuntu with Unity where there is a permanent tray icon present even without the extension, so not facing the same problem as @undera.

@Gotos
Copy link

Gotos commented Aug 7, 2017

Works for me, using gentoo and thunderbird 52.2.0. Thank you very much!

@dmnrmr
Copy link

dmnrmr commented Aug 8, 2017

Doesn't work on thunderbird 52.2.1, gnome 3.24.3, fedora 26.

@endrigo
Copy link

endrigo commented Aug 16, 2017

Works for me, using Debian 9.1 (x86-64) and Thunderbird 52.2.1 (64-bits), Cinnamon 3.2.7.
Thank you very much!

@sebadorn
Copy link

Works for me, thank you very much! Ubuntu 16.04.3, GNOME Shell 3.18.5, Thunderbird 52.2.1.

@qwertychouskie
Copy link

@nmaier What's the status on this?

@fkopietz
Copy link

fkopietz commented Sep 5, 2017

Works for me on arch with GNOME 3.24.2 and TB 52.3.0. Great job @rsjtdrjgfuzkfg 👍

@mckatzenelson
Copy link

Works with FC 26, TB 52.3.0

@grottas
Copy link

grottas commented Sep 25, 2017

This fixed the closing to tray issue, but now is not minimizing to tray.

Linux Mint 18.1 Cinnamon 64 bits
Thunderbird 52.3.0

@Brianetta
Copy link

Fixed, XFCE on Ubuntu 16.04

@bhrgunatha
Copy link

It's working for me - both close and minimise cause Thunderbird to sit in the tray!

Thunderbird 52.4.0 (64-bit)
XFCE 4.12 in Arch Linux

Thanks for tracking this down and submitting a fix!

@schrodingers-ape
Copy link

schrodingers-ape commented Oct 28, 2017

It mostly works for me (52.4.0 64-bit, Linux Mint 17.3).

Notes: It still minimizes to taskbar if I click the minimize button, and I have to enable "always show tray icon" otherwise it vanishes when I close. But if I enable that, then it stays in the tray only.

Edit: I was also running "Minimize on start and close" and this was interfering, I think it was overriding mintrayr's minimize to tray on close, so it was just minimizing (to taskbar) instead of closing. When I disabled start-and-close, then mintrayr minimizes to tray on close button, without having to have it always showing. Interesting that with "always show tray" turned OFF and "minimize on start and close" turned ON, the close button would appear to completely close the app, as if ignoring both add-ons. I wonder if each add-on is using some kind of toggle to change a value so they're cancelling each other out? Neither extension seems able to properly minimise to tray with the minimize button.

@mattmart3
Copy link

The fix it's working for me too, both closing and minimizing to tray.

Thunderbird 52.5.0 (64-bit)
Linux mint 18.3 mate

@mckatzenelson
Copy link

mckatzenelson commented Jan 2, 2018 via email

@Danielti2011
Copy link

Aqui também esta funcionando Ubuntu 17.10 Thunderbird 52

Obrigado

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

Successfully merging this pull request may close these issues.

Ubuntu Thunderbird not Minimising to Tray