timche / gmail-desktop

:postbox: Nifty Gmail desktop app for macOS, Linux & Windows
MIT License
845 stars 91 forks source link

Email notifications not working on Linux #205

Closed ipkpjersi closed 4 years ago

ipkpjersi commented 4 years ago

I am not recieving any email notifications, I am only getting the red tray icon when I recieve an email. I am using Linux.

Steps to Reproduce:

  1. Recieve an email
  2. There is no email notification
cipriancraciun commented 4 years ago

(I am currently using 2.20.1, so unless this is a bug introduced in this latest patch, see my reply bellow.)

I've been using gmail-desktop for quite some while on Linux (openSUSE Tumbleweed) with i3 window manager (thus a similar lightweight / non-Gnome / non-KDE environment), and notifications always worked, thus please check the following:

ipkpjersi commented 4 years ago

I believe I had display notifications turned off in GMail settings, so I think that was the issue. It seems you solved two of the issues I've had so that helps a lot. I wish there was a way to force notifications to only one specific monitor instead of the monitor with my current mouse but I guess that is not possible?

I am guessing there is no way to get a display of the count of unread emails in the tray icon?

cipriancraciun commented 4 years ago

I wish there was a way to force notifications to only one specific monitor instead of the monitor with my current mouse but I guess that is not possible?

That is something you have to configure in your notifications display tool. (For example in case of dunst you can use the monitor and follow options to configure this.)

I am guessing there is no way to get a display of the count of unread emails in the tray icon?

My guess is that is technically possible, however I believe it would require us to have one icon per number of unread emails (so say up to 10?).

ipkpjersi commented 4 years ago

That is something you have to configure in your notifications display tool. (For example in case of dunst you can use the monitor and follow options to configure this.)

I think since I'm using xfce4, I'm using xfce4-notifyd, seems like xfce4-notifyd-config does have support for running notifications (possibly even specific for one app) on the primary monitor: https://docs.xfce.org/apps/notifyd/preferences, but perhaps not with my version of xfce4-notifyd-config: http://i.imgur.com/zcJjll1.png unless I'm using a different notification daemon altogether? No idea, I'm still fairly new to Linux, only been running it for 3 years on my desktop and this seems somewhat nontrivial...

edit: so it seems Ubuntu 16.04 does not have support for primary monitor feature of xfce4-notifyd-config, Ubuntu 18.04 does have support for primary monitor feature of xfce4-notifyd-config but I just realized I want the notifications always on my secondary monitor, not my primary or current, which kind of makes this a bit pointless. Oh well.

My guess is that is technically possible, however I believe it would require us to have one icon per number of unread emails (so say up to 10?).

I think that definitely would be cool to have, one icon each for 1 to 9, then 10 or more could be displayed as 9+.