linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.5k stars 732 forks source link

Missing network connection notifications #11268

Open warwickmm opened 1 year ago

warwickmm commented 1 year ago
 * Cinnamon version (cinnamon --version): Cinnamon 5.4.12

 * Distribution - (Mint 21, Arch, Fedora 37, etc...): Arch

 * Graphics hardware *and* driver used
 00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 [8086:5917] (rev 07) (prog-if 00 [VGA controller])
    Subsystem: Lenovo Device [17aa:225c]
    Flags: bus master, fast devsel, latency 0, IRQ 138
    Memory at 2ffa000000 (64-bit, non-prefetchable) [size=16M]
    Memory at b0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at e000 [size=64]
    Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

 * 32 or 64 bit: 64 bit
 * Attach ~/.xsession-errors, or /var/log/syslog

Issue

Notifications for network connections/disconnections no longer appear. Notifications for other events are working as expected.

Steps to reproduce

  1. Disconnect from a wireless network.
  2. Connect to a wireless network.

Expected behaviour

Upon disconnecting from a network, a notification appears. Upon connecting to a network, a notification appears.

Other information

Here's a screenshot of dconf-editor:

image

Contents of ~/.xsession-errors:


 discover_other_daemon: 1discover_other_daemon: 1discover_other_daemon: 1[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
mutter-Message: 09:21:33.059: Enabling experimental feature 'x11-randr-fractional-scaling'
Gjs-Message: 09:21:34.334: JS LOG: About to start Cinnamon
Gjs-Message: 09:21:34.380: JS LOG: [LookingGlass/info] Cinnamon.AppSystem.get_default() started in 41 ms
Gjs-Message: 09:21:34.383: JS LOG: [LookingGlass/info] loading user theme: /home/ken/.themes/CBlack/cinnamon/cinnamon.css
Gjs-Message: 09:21:34.403: JS LOG: [LookingGlass/info] added icon directory: /home/ken/.themes/CBlack/cinnamon
Gjs-Message: 09:21:34.787: JS LOG: [LookingGlass/info] loaded at Sat Nov 05 2022 09:21:34 GMT-0700 (Pacific Daylight Time)
Gjs-Message: 09:21:34.787: JS LOG: Cinnamon started at Sat Nov 05 2022 09:21:34 GMT-0700 (Pacific Daylight Time)
Gjs-Message: 09:21:34.788: JS LOG: GPU offload supported: false
Gjs-Message: 09:21:34.803: JS LOG: [LookingGlass/info] ExtensionSystem started in 2 ms
Gjs-Message: 09:21:34.804: JS LOG: [LookingGlass/info] DeskletManager started in 2 ms
Gjs-Message: 09:21:34.804: JS LOG: [LookingGlass/info] SearchProviderManager started in 2 ms
Gjs-Message: 09:21:34.983: JS LOG: [LookingGlass/info] Loaded applet calendar@cinnamon.org in 97 ms
Gjs-Message: 09:21:34.990: JS LOG: [LookingGlass/info] Role locked: notifications
conky: desktop window (2c00010) is subwindow of root window (79b)
conky: window type - dock
conky: drawing to created window (0x3200002)
conky: drawing to double buffer

** (nemo-desktop:1279): WARNING **: 09:21:35.168: Current gtk theme is not known to have nemo support (CBlack) - checking...
Gjs-Message: 09:21:35.185: JS LOG: [LookingGlass/info] Loaded applet notifications@cinnamon.org in 202 ms
Gjs-Message: 09:21:35.288: JS LOG: [LookingGlass/info] Loaded applet xapp-status@cinnamon.org in 103 ms
Gjs-Message: 09:21:35.312: JS LOG: [LookingGlass/info] Loaded applet power@cinnamon.org in 23 ms
Gjs-Message: 09:21:35.353: JS LOG: [LookingGlass/info] Role locked: windowattentionhandler
Gjs-Message: 09:21:35.361: JS LOG: [LookingGlass/info] Loaded applet window-list@cinnamon.org in 49 ms
Gjs-Message: 09:21:35.423: JS LOG: [LookingGlass/info] Loaded applet sound@cinnamon.org in 62 ms
** Message: 09:21:35.462: nemo-desktop: session is cinnamon, establishing proxy
Gjs-Message: 09:21:35.486: JS LOG: [LookingGlass/info] Loaded applet network@cinnamon.org in 62 ms
blueman-applet 09.21.35 WARNING  PluginManager:151 __load_plugin: Not loading DhcpClient because its conflict has higher priority
blueman-applet 09.21.35 WARNING  PluginManager:151 __load_plugin: Not loading PPPSupport because its conflict has higher priority
Gjs-Message: 09:21:35.624: JS LOG: [LookingGlass/info] Loaded applet menu@cinnamon.org in 138 ms
Gjs-Message: 09:21:35.625: JS LOG: [LookingGlass/info] AppletManager started in 837 ms
Gjs-Message: 09:21:35.629: JS LOG: [LookingGlass/info] Cinnamon took 1295 ms to start
Gjs-Message: 09:21:35.649: JS LOG: Unknown network device type, is 14
Gjs-Message: 09:21:35.681: JS LOG: Unknown network device type, is 30
cinnamon-session[966]: WARNING: t+4.86328s: Detected that screensaver has appeared on the bus
Gjs-Message: 09:21:36.188: JS LOG: [LookingGlass/info] Adding XAppStatusIcon: :1.45 (:1.35/org/x/StatusIcon/Icon)
Gjs-Message: 09:21:38.677: JS LOG: Enabling WindowAttentionHandler
[1486:1486:1105/092143.995041:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented
cinnamon-session[966]: WARNING: t+43.15597s: Detected that screensaver has left the bus
Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: Cannot load default config file: No such file: (null)
[1533:1533:1105/092622.405343:ERROR:shared_image_manager.cc(189)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[1533:1533:1105/092622.406300:ERROR:shared_image_manager.cc(189)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
Fontconfig error: Cannot load default config file: No such file: (null)
[libprotobuf ERROR ../../third_party/protobuf/src/google/protobuf/message_lite.cc:133] Can't parse message of type "safe_browsing.ClientDownloadRequest" because it is missing required fields: (cannot determine missing fields for lite message)

(wfica:7140): Gtk-WARNING **: 09:33:49.100: Unable to locate theme engine in module_path: "murrine",

(wfica:7140): Gtk-WARNING **: 09:33:49.100: Unable to locate theme engine in module_path: "murrine",

(wfica:7140): Gtk-WARNING **: 09:33:49.101: Unable to locate theme engine in module_path: "murrine",

(wfica:7140): Gtk-WARNING **: 09:33:49.101: Unable to locate theme engine in module_path: "murrine",

(wfica:7140): Gtk-WARNING **: 09:33:49.101: Unable to locate theme engine in module_path: "murrine",

(wfica:7140): Gtk-WARNING **: 09:33:49.101: Unable to locate theme engine in module_path: "murrine",

(wfica:7140): Gtk-WARNING **: 09:33:49.102: Unable to locate theme engine in module_path: "murrine",

(wfica:7140): Gtk-CRITICAL **: 09:33:52.102: IA__gtk_container_remove: assertion 'GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed

(wfica:7140): Gtk-CRITICAL **: 09:33:52.102: IA__gtk_container_remove: assertion 'GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
sh: line 1: lldpcli: command not found

(wfica:8076): Gtk-WARNING **: 09:35:52.452: Unable to locate theme engine in module_path: "murrine",

(wfica:8076): Gtk-WARNING **: 09:35:52.452: Unable to locate theme engine in module_path: "murrine",

(wfica:8076): Gtk-WARNING **: 09:35:52.453: Unable to locate theme engine in module_path: "murrine",

(wfica:8076): Gtk-WARNING **: 09:35:52.453: Unable to locate theme engine in module_path: "murrine",

(wfica:8076): Gtk-WARNING **: 09:35:52.453: Unable to locate theme engine in module_path: "murrine",

(wfica:8076): Gtk-WARNING **: 09:35:52.453: Unable to locate theme engine in module_path: "murrine",

(wfica:8076): Gtk-WARNING **: 09:35:52.453: Unable to locate theme engine in module_path: "murrine",
[1533:1533:1105/093641.384962:ERROR:shared_image_manager.cc(189)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[1533:1533:1105/093641.385902:ERROR:shared_image_manager.cc(189)] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: Cannot load default config file: No such file: (null)
Fontconfig error: Cannot load default config file: No such file: (null)

Configuration info, if applicable

If this bug report is related to an Applet, Desklet or Extension, please paste (or use a pastebin service) the offending extension's settings, if it has any. You can obtain this by opening its configuration, clicking the 'hamburger' button in the upper-right corner of the window, and selecting "Export to a file". Please be sure to review the contents and remove any personal data it may contain.

warwickmm commented 1 year ago

When using budgie-desktop (which I believe also uses network-manager-applet), the notifications do appear as expected.

warwickmm commented 1 year ago

When using budgie, dbus-monitor "interface='org.freedesktop.Notifications'" indicates some activity when disabling/enabling network connections:

$ dbus-monitor "interface='org.freedesktop.Notifications'"
signal time=1667760077.239117 sender=org.freedesktop.DBus -> destination=:1.118 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.118"
signal time=1667760077.239211 sender=org.freedesktop.DBus -> destination=:1.118 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.118"
method call time=1667760079.532650 sender=:1.112 -> destination=:1.108 serial=25 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=CloseNotification
   uint32 0
method call time=1667760086.485270 sender=:1.112 -> destination=:1.108 serial=26 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "NetworkManager"
   uint32 0
   string "nm-no-connection"
   string "Disconnected"
   string "The network connection has been disconnected."
   array [
      string "disable-disconnected-notifications"
      string "Don’t show this message again"
   ]
   array [
      dict entry(
         string "transient"
         variant             boolean true
      )
      dict entry(
         string "desktop-entry"
         variant             string "nm-applet"
      )
      dict entry(
         string "urgency"
         variant             byte 0
      )
      dict entry(
         string "sender-pid"
         variant             int64 15675
      )
   ]
   int32 -1
method call time=1667760089.929752 sender=:1.112 -> destination=:1.108 serial=27 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=CloseNotification
   uint32 2
signal time=1667760089.937865 sender=:1.108 -> destination=(null destination) serial=79 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed
   uint32 2
   uint32 3
method call time=1667760095.240142 sender=:1.112 -> destination=:1.108 serial=28 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "NetworkManager"
   uint32 0
   string "nm-signal-100"
   string "Connection Established"
   string "You are now connected to the Wi-Fi network “CletusVanDamme”."
   array [
      string "disable-connected-notifications"
      string "Don’t show this message again"
   ]
   array [
      dict entry(
         string "transient"
         variant             boolean true
      )
      dict entry(
         string "desktop-entry"
         variant             string "nm-applet"
      )
      dict entry(
         string "urgency"
         variant             byte 0
      )
      dict entry(
         string "sender-pid"
         variant             int64 15675
      )
   ]
   int32 -1
signal time=1667760101.256354 sender=:1.108 -> destination=(null destination) serial=86 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=NotificationClosed
   uint32 3
   uint32 1

However when using cinnamon, there is no such activity when disabling/enabling network connections:

$ dbus-monitor "interface='org.freedesktop.Notifications'"
signal time=1667760152.142087 sender=org.freedesktop.DBus -> destination=:1.48 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.48"
signal time=1667760152.142202 sender=org.freedesktop.DBus -> destination=:1.48 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.48"

In cinnamon, I do see activity when using $ notify-send hello:

$ dbus-monitor "interface='org.freedesktop.Notifications'"
signal time=1667761238.209895 sender=org.freedesktop.DBus -> destination=:1.63 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.63"
signal time=1667761238.209986 sender=org.freedesktop.DBus -> destination=:1.63 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.63"
method call time=1667761245.004642 sender=:1.64 -> destination=:1.31 serial=6 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=GetServerInformation
method call time=1667761245.008359 sender=:1.64 -> destination=:1.31 serial=7 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=GetServerInformation
method call time=1667761245.010848 sender=:1.64 -> destination=:1.31 serial=8 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "notify-send"
   uint32 0
   string ""
   string "hello"
   string ""
   array [
   ]
   array [
      dict entry(
         string "urgency"
         variant             byte 1
      )
      dict entry(
         string "sender-pid"
         variant             int64 24938
      )
   ]
   int32 -1
warwickmm commented 1 year ago

When a connection attempt fails, I do see an "Activation of network connection failed" notification (strangely, dbus-monitor "interface='org.freedesktop.Notifications'" doesn't indicate any activity for that). However, connection/disconnection notifications do not appear.

Is anyone else experiencing this issue?

warwickmm commented 1 year ago

If I create a new user, then the notifications are appearing as expected. Would someone be able to suggest a simple way to compare the configurations between my current user and the new one?

warwickmm commented 1 year ago

I wasn't able to figure it out, but "Restore all settings to default" fixed the notifications.

warwickmm commented 1 year ago

After about a month, the notifications have disappeared again. I don't recall doing anything to hide the notifications.

$ gsettings get org.gnome.nm-applet disable-connected-notifications
false
$ gsettings get org.gnome.nm-applet disable-disconnected-notifications
false