Open Bug 1942125 Opened 1 year ago Updated 1 day ago

[meta] linux sys tray icon issues

Categories

(Thunderbird :: OS Integration, defect)

defect

Tracking

(Not tracked)

People

(Reporter: heather, Assigned: heather)

References

(Depends on 6 open bugs)

Details

(Keywords: meta)

There are issues with the linux system tray icon and a few bugs tracking them. This is a meta bug to collect them.

Depends on: 1910321
Depends on: 1928716
Summary: linux sys tray icon issues → [meta] linux sys tray icon issues
Depends on: 1942127
Keywords: meta
Depends on: 1942318
Depends on: 1918035
Depends on: 1627479

To get to Windows parity, this is currently missing:

  1. Ability to switch the tray icon off completely, pref: mail.biff.show_tray_icon (bug 1918035)
  2. Ability to always show the tray icon or only show it when there is new/unread mail, pref: mail.biff.show_tray_icon_always (bug 1918035)
  3. A different icon depending on whether the is new/unread mail or not (EDIT: filed bug 1946946).
  4. A count of new/unread messages in the tooltip. Currently the tooltip is hard-coded "Thunderbird Daily" (EDIT: filed bug 1946946).
  5. Mininize to tray, pref: mail.minimizeToTray (bug 1627479)

Note that the new/unread count can be toggled with pref mail.biff.use_new_count_in_badge.

Should there be bugs filed for points 3 and 4? (EDIT: filed bug 1946946).

Yes please file.

Depends on: 1946946
  1. Ability to switch the tray icon off completely, pref: mail.biff.show_tray_icon (bug 1918035)

Thanks for looking into this! Any opinions on disabling the tray icon by default until it at least shows an icon? Currently it's just a square that only allows quitting Thunderbird.

You mean: ... until it at least shows a new/unread mail ?

I suggest to get feature parity with Windows. With the two prefs mail.biff.show_tray_icon and mail.biff.show_tray_icon_always you can achieve the following:
false/*: No system tray icon ever.
true/false (default): System tray icon for new/unread mail.
true/true: System tray icon always. That's the current state for Linux, but without new/unread count in the tooltip.

(In reply to Francesco from comment #4)

You mean: ... until it at least shows a new/unread mail ?

Yes that would be better.

It's not a square on Daily but yes, until its not just a square on beta/release, it would make sense to me to disable it.

There is something wrong with the mail/branding/tb_beta/TB-symbolic.svg image file.
If I copy that to mail/branding/nightly/TB-symbolic.svg, daily also displays the white square like beta. It does seem the path etc. are correct though - both for beta and daily, if I remove the file, that shows something different.

But there's something else wrong as well. If I copy the nightly brandied image to beta, that still does not work...
Potentially the svgs use some feature that's ifdef EARLY_BETA_OR_EARLIER.

See Also: → 18732

Not sure if I'm on the right issue, but on version 136 my tray just displays the text "Thunderbird Daily" without icon.

Please file another bug about that and mark it blocking this bug (bug 1942125).
You're getting the fallback (for whatever reason), but obviously that should not show as "Thunderbird Daily", but "Thunderbird" - which should not be hardcoded here https://searchfox.org/comm-central/rev/93b165b0f271d4d6ff3526d4789415a4d7936b92/rust/sys_tray/src/linux/mod.rs#82 but probably use brandShortName etc.

This is mostly covered in bug 1946946 comment 1.

Depends on: 1953034
Depends on: 1955299
Depends on: 1955834

I know this is my first comment here and I'm sorry to enter the discussion this way but I would like to know if there's any update on this issue? See, I use Thunderbird on a daily basis, professionnally and I really need it to run on the background and stay in the system tray. Currently this is the last thing that prevents me from migrating to Wayland because I use systray-x for that. The problem is that systray-x (and Birdtray too, AFAIK) use an X11 API that has no counterpart on Wayland (or at least not to be merged and implemented any time soon. So when a native system tray support on Linux was announced on the roadmap for the middle of this year, I was thrilled. Sadly since then the feature was delayed and this ticket has stalled.

I'm not an highly experienced Rust developper, I don't understand exactly what's stalling this feature and I'm not familiar with TB's contribution process, but if there's anything I can do to make this feature progress, please let me know.

Hi Christophe, thank you for being a caring user and chiming in here :)

Honestly the only thing holding up progress is an engineers time to work on it. I started this project some time ago and then would love to find time to come back to it.

If you would like to challenge yourself and try to help out, that would be greatly appreciated!! And I can be your touch point to this project. If you're interested in this effort then you can learn about setting up your development environment here (to get ready to make changes to Thunderbird):
https://developer.thunderbird.net/thunderbird-development/building-thunderbird/linux-build-prerequisites

And here is where you'll find the linux system tray code within the Thunderbird codebase:
https://hg-edge.mozilla.org/comm-central/file/tip/rust/sys_tray/src/

You can always ping me on matrix too with any questions on getting started ๐Ÿ™‚

You need to log in before you can comment on or make changes to this bug.