gsettings set org.gnome.nm-applet disable-disconnected-notifications "true"
gsettings set org.gnome.nm-applet disable-connected-notifications "true"
Or open dconf-editor and scroll down to org ▸ gnome ▸ nm-applet and check disable-connected-notifications and disable-disconnected-notifications settings there.
11.10 and 12.04 - Gconf
Gconf-editor lets you edit the network manager notifications.
To alter these settings, install gconf-editor from the software-center.
Scroll to / ▸ apps ▸ nm-applet and check disable-connected-notifications and disable-disconnected-notifications settings there. Check the attached image for clarifications.
then chmod +x /etc/pm/sleep.d/49_killall_notify. This is for Xubuntu, on regular Ubuntu I guess it would be /usr/bin/killall notify-osd or something like that. You might also need to tweak the sleep times.
But this is an ugly hack ;) it'd be better to see a real fix.
unhammer is correct that disabling disconnect notifications in gconf-editor doesn't work. In regular Ubuntu you can kill the disconnect notifications with:
sudo chmod -x /usr/lib/notify-osd/notify-osd
Then kill the notify-osd process.
I guess this probably kills all notifications, not just network-related ones.
Caveat: killall notify-osd is non-discriminating and completely wipes the notification stack of any pending messages irregardless of whether NM is the notifying agent.
An "honest" solution can be finessed but this requires that pending notifications, other than NM's, need to be reestablished while maintaining their temporal integrity. This means the chronological ordering needs to be maintained for the other notifications and the dbus monitored to check if the notifications' status has changed ... ie. canceled, message altered etc.
12.10 - Dconf
Run these commands:
Or open dconf-editor and scroll down to
org
▸gnome
▸nm-applet
and checkdisable-connected-notifications
anddisable-disconnected-notifications
settings there.11.10 and 12.04 - Gconf
Gconf-editor lets you edit the network manager notifications.
To alter these settings, install
gconf-editor
from the software-center.Scroll to
/ ▸ apps ▸ nm-applet
and checkdisable-connected-notifications
anddisable-disconnected-notifications
settings there. Check the attached image for clarifications.In addition to jokerdino's way, you can change this in commandline too:
To see what can be changed:
The other answers might help you with getting rid of "you are connnected" messages, but there's a bug, at https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/445872 (see also https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/921717 and https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/835972 ), causing the disable-disconnected-notification setting to be ignored.
Until that's fixed, there is a workaround. Put this in
/etc/pm/sleep.d/49_killall_notify
:then
chmod +x /etc/pm/sleep.d/49_killall_notify
. This is for Xubuntu, on regular Ubuntu I guess it would be/usr/bin/killall notify-osd
or something like that. You might also need to tweak the sleep times.But this is an ugly hack ;) it'd be better to see a real fix.
unhammer is correct that disabling disconnect notifications in gconf-editor doesn't work. In regular Ubuntu you can kill the disconnect notifications with:
Then kill the notify-osd process.
I guess this probably kills all notifications, not just network-related ones.
A crude solution:
Caveat:
killall notify-osd
is non-discriminating and completely wipes the notification stack of any pending messages irregardless of whether NM is the notifying agent.An "honest" solution can be finessed but this requires that pending notifications, other than NM's, need to be reestablished while maintaining their temporal integrity. This means the chronological ordering needs to be maintained for the other notifications and the
dbus
monitored to check if the notifications' status has changed ... ie. canceled, message altered etc.Ideally, the direct
dbus
use ofto specifically target just the NM's notifications, is unfortunately not obvious ...
ref:
Bookmark:
How to disable notification from network-manager
If you are looking for ubuntu 18.10 then you can disable from gnome.