Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[Linux] Notifications Not Showing Properly #465
Comments
Subash
changed the title from
[Linux] Notifications Alert Only
to
[Linux] Notifications Not Showing Properly
Jul 7, 2014
probablycorey
added
the
bug
label
Jul 21, 2014
zcbenz
added
the
linux
label
Aug 19, 2014
|
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. |
zcbenz
closed this
Oct 14, 2014
sidoh
commented
Apr 1, 2015
|
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". |
sidoh
commented
Apr 2, 2015
|
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 |
sidoh
commented
Apr 2, 2015
|
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. |
added a commit
to pekim/slack-wrapped
that referenced
this issue
May 17, 2015
markbaas
commented
Feb 11, 2016
|
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) |
markbaas
commented
Feb 12, 2016
|
@paulcbetts I'm using unity |
markbaas
commented
Feb 12, 2016
|
Major applications such as N1 and Slack are affected. |
markbaas
commented
Feb 12, 2016
|
Tried all electron versions from 0.28.3 until 0.36.6 and it breaks on 0.33.5 |
markbaas
commented
Feb 12, 2016
|
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. |
paulcbetts
reopened this
Feb 13, 2016
|
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 |
markbaas
referenced this issue
in electron-archive/brightray
Feb 15, 2016
Closed
[Unity] more elegant solution to unity detection #197
markbaas
commented
Feb 15, 2016
|
I propose the following file change. atom/brightray#197 I couldn't test it as I wasn't able to compile electron (tried all weekend). |
This was referenced Feb 16, 2016
maherelgamil
commented
Mar 22, 2016
|
i have the same issue in ubuntu 16.04 :( |
jcassee
referenced this issue
in keybase/client
Mar 24, 2016
Closed
Dialogs instead of notifications on Ubuntu 16.04 #2443
johnnagro
commented
Mar 25, 2016
|
+1 16.04 |
ennui93
commented
Mar 25, 2016
conradkdotcom
commented
Mar 26, 2016
|
I was having the problem described here, on Arch Linux. I ended up doing the following, which is good enough for me, in that it now displays notifications in a less intrusive way: sudo pacman -R notify-osd
sudo pkill notify-osd
sudo pacman -S mate-notification-daemonNote that I use the I hope this helps. |
TrafeX
commented
Mar 29, 2016
|
I've the same issue on Ubuntu 16.04. I can't use the workaround mentioned above, other programs need notify-osd. Any other workarounds? This breaks the notifications for both Slack and Nylas. |
MarshallOfSound
referenced this issue
in MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-
Mar 29, 2016
Closed
Added notification capabilities. #839
davidbanham
commented
Apr 4, 2016
|
I suspect this is related to this bug logged against notify-osd. https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/1277430 I'm seeing this behaviour on my system with Electron apps (Slack). This works correctly:
But this causes the undesired behaviour:
|
jamesadney
commented
Apr 6, 2016
|
If you're skimming this looking for a quick workaround for distracting Slack notifications: sudo touch /usr/lib/libunity-electron_notification_fixSee: #465 (comment) |
bengotow
referenced this issue
in nylas/nylas-mail
Apr 6, 2016
Closed
Nylas N1 notifications use zenity instead of libnotify on Ubuntu 16.04 #1897
|
Yeah, @jamesadney is what is expected to work. The reason why this broke in 16.04 is that unity moved to multi-arch, thus the libunity files have been moved to So, please fix electron. PS: I'm an Ubuntu unity developer, if you need anything else. Also, about this topic, please give a look at bug #5052 :) |
|
@3v1n0 We would really love to detect patched notifier in a non-crazy way, do you have any better ideas about how to do this? |
|
@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'] |
This was referenced Apr 13, 2016
zcbenz
closed this
in
electron-archive/brightray#210
Apr 13, 2016
marcosfede
commented
Apr 24, 2016
|
@marcosfede The slack app will have to update electron versions before it is fixed |
WystJenkins
commented
Apr 25, 2016
•
|
I got the same bug in Slack since updating to Ubuntu 16.04 .. no virtual machine |
philippgerard
commented
Apr 25, 2016
|
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.... |
Arihantar
commented
Apr 25, 2016
|
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. |
mcg
commented
Apr 25, 2016
|
@Arihantar Workaround posted in this thread, and you can also |
bengotow
referenced this issue
in nylas/nylas-mail
Apr 25, 2016
Closed
Broken notifications on Ubuntu 16.04? #2050
xzitlou
commented
Apr 25, 2016
|
I tried |
mcg
commented
Apr 25, 2016
|
@xzitlou How to use that workaround is probably not for this bug thread. See #465 (comment) for another option that may work for you. |
cYbercOsmOnauT
commented
Apr 26, 2016
|
Had the same problem with Slack. #465 (comment) helped me |
WystJenkins
commented
Apr 26, 2016
|
thanks @jamesadney #465 (comment) solved the Slack notification bug! |
jurgenhaas
commented
Apr 26, 2016
|
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. |
This was referenced Apr 26, 2016
weeman1337
commented
May 2, 2016
|
Since I updated to Ubuntu 16.04 I'm also affected by this bug. |
mhsiddiqui
commented
May 2, 2016
|
I am having same bug in ubuntu 16.04. |
cYbercOsmOnauT
commented
May 2, 2016
|
Guys... read the comment that was linked in this thread several times |
jwheare
referenced this issue
in irccloud/irccloud-desktop
May 4, 2016
Closed
Annoying Notifications #30
ildella
commented
May 16, 2016
•
|
@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 |



Subash commentedJul 7, 2014
Notifications on Ubuntu are shown as alerts instead of regular notification.

Is this how notifications are supposed to look on ubuntu ?