-
Notifications
You must be signed in to change notification settings - Fork 15k
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
[Linux] Notifications Not Showing Properly #465
Comments
What's the version of Ubuntu and were you using Unity? |
It's a virtualbox VM with ubuntu 14.xx LTS. |
Can you run |
I'm closing this for lack of information, please reopen if you can provide more information. |
I'm having this issue as well. I'm running ubutnu 14.04.2 LTS. notify-send shows the system notifications I'd expect to see (growl-esque notifications in the top-right of my screen). Notifications in the atom-shell app I'm trying to use and when I create them manually (with Any idea how to resolve this? |
@sidoh Can you download Atom editor and see if the sending a notification works in its devtools? On some distributions the notification can only show correctly if the application is "installed". |
I installed atom from this PPA: http://www.webupd8.org/2014/05/atom-text-editor-ubuntu-ppa-update.html Within atom's DevTools I'm getting the same thing (ugly alert with |
I've seen this bug too, it's super distro-specific 😿 |
Can you try removing the |
I tried removing it. I relaunched atom and ran the same test with the same result. I also dropped Is this what you intended for me to do? |
Yeah that is what I intended, thanks. I think maybe the distribution has some kind of whitelist of sending notifications since different distribution yields different results, so reporting it to the distribution's bug tracker could probably gets some solution from the developers there. |
There was a problem with notifications rendering incorrectly on Ubuntu. Somewhat similar to that reported in electron/electron#465 . This appears to have been fixed in electron v0.25.0, so the use of node-notify is no longer necessary.
This bug is valid again. Worked fine with 0.28.3, but with 0.36.7 it fails. |
@markbaas Install Unity (you don't have to use it, just have it) |
@paulcbetts I'm using unity |
Major applications such as N1 and Slack are affected. |
Tried all electron versions from 0.28.3 until 0.36.6 and it breaks on 0.33.5 |
Perhaps this worked in previous versions of Ubuntu, at least not in 16.04. On unity electron wants to use unity specific variables, this code breaks that:
Instead it should look at running processes IMO. |
@markbaas The problem is that fundamentally, the thing we need to detect is, "Does libnotify (or in reality, the service it signals via DBus) have Ubuntu's special patches applied that disable actions". There is no sane way to detect this. Even if Unity isn't being used at all (i.e. Xubuntu based on Xfce, etc), if libnotify is patched, you'll get the dialog box. You can't detect based on distro name either, because lots of distros like Elementary OS are based on Ubuntu and therefore inherit Ubuntu's brain-damaged notifications while not being called "Ubuntu". While I'm totally on-board with coming up with a better heuristic (since this one fails too in a number of scenarios), it's Not So Easy to do so. |
It appears that Ubuntu 16.04 will break the code in Brightray to detect this, we'll have to update it or come up with a better plan |
I propose the following file change. electron-archive/brightray#197 I couldn't test it as I wasn't able to compile electron (tried all weekend). |
@paulcbetts I think the best way is just getting the server info from libnotify or the supported caps. Just for being clear, here's what you get when running notify-osd: >>> from gi.repository import Notify
>>> Notify.get_server_info()
(True, 'notify-osd', 'Canonical Ltd', '1.0', '1.1')
>>> Notify.get_server_caps()
['body', 'body-markup', 'icon-static', 'image/svg+xml', 'x-canonical-private-synchronous', 'x-canonical-append', 'x-canonical-private-icon-only', 'x-canonical-truncation', 'private-synchronous', 'append', 'private-icon-only', 'truncation'] |
@marcosfede The slack app will have to update electron versions before it is fixed |
I got the same bug in Slack since updating to Ubuntu 16.04 .. no virtual machine |
Same here with 16.04 in Franz app and Nylas N1. |
@philippgerard I'm just going to reiterate. Just because it is fixed here (upstream) doesn't mean that the individual apps that use electron have updated to a version of electron that has the fix.... |
So do we have a solution to this above issue. My Slack and every other notifications are coming as alerts after updating to Ubuntu 16.04. |
@Arihantar Workaround posted in this thread, and you can also |
I tried |
@xzitlou How to use that workaround is probably not for this bug thread. See #465 (comment) for another option that may work for you. |
Had the same problem with Slack. #465 (comment) helped me |
thanks @jamesadney #465 (comment) solved the Slack notification bug! |
I'm on Ubuntu 16.04 using Mattermost desktop and #465 (comment) removed the annoying notifications but now I'm not getting any notifications at all. |
Since I updated to Ubuntu 16.04 I'm also affected by this bug. |
I am having same bug in ubuntu 16.04. |
Guys... read the comment that was linked in this thread several times |
@MarshallOfSound is there a specific commit with the electron fix? Or better, is the fix inluded in one of the last release? https://github.com/electron/electron/releases Thanks |
@ildella It was fixed in electron release 0.37.6 |
Notification bug electron/electron#465
Notifications on Ubuntu are shown as alerts instead of regular notification.
Is this how notifications are supposed to look on ubuntu ?
The text was updated successfully, but these errors were encountered: