Tray menu is not working on Linux
See original GitHub issueNWJS Version : v0.31.4 default/sdk and previous.
Operating System :
- Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
- Linux 4.14.44-1-MANJARO #1 SMP PREEMPT Fri May 25 18:35:59 UTC 2018 x86_64 GNU/Linux
Tray icon should be shown, but it is not.
var trayOptions = {
icon: 'images/ic_launcher_20.png',
click: function () {
win.show();
},
title: __('about_plain_text')
};
converse.tray = new nw.Tray(trayOptions);
var submenuMainTray = new nw.Menu();
quitAll.click = function () {
closeMe();
};
submenuMainTray.insert(quitAll);
Fontconfig warning: "/etc/fonts/fonts.conf", line 160: blank doesn't take any effect anymore. please remove it from your fonts.conf
[1596:1629:0628/051851.947995:ERROR:bus.cc(394)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Gkr-Message: couldn't connect to dbus session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[1596:1596:0628/051854.367792:ERROR:gpu_process_transport_factory.cc(1022)] Lost UI shared context.
[1636:1652:0628/051854.439131:ERROR:command_buffer_proxy_impl.cc(133)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[1596:1596:0628/051855.751093:ERROR:browser_main_loop.cc(269)] GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(MyApp:1596): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: The connection is closed
[1596:1618:0628/051856.384965:ERROR:bus.cc(394)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
# systemctl status dbus.service
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled)
Active: active (running) since Tue 2018-06-19 15:26:28 EDT; 1 weeks 1 days ago
Docs: man:dbus-daemon(1)
Main PID: 377 (dbus-daemon)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/dbus.service
└─377 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
Jun 28 05:05:47 sdr dbus[377]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jun 28 05:05:48 sdr dbus[377]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
Jun 28 05:05:49 sdr dbus[377]: [system] Successfully activated service 'org.freedesktop.locale1'
Jun 28 05:06:09 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out
Jun 28 05:08:05 sdr dbus[377]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Jun 28 05:08:30 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out
Jun 28 05:18:51 sdr dbus[377]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Jun 28 05:19:16 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out
Jun 28 05:22:25 sdr dbus[377]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Jun 28 05:22:50 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
Tray menu is not working on Linux · Issue #568 · thamara/time-to ...
Tray menu should contain items such as "Punch Time", "Show App" and "Quit". But in Linux, it only shows "Time to Leave", and...
Read more >How to fix broken dropdown menu of HPLIP tray icon in ...
The autostart file from hplip-gui is located in /etc/xdg/autostart/hplip-systray.desktop . To fix the menu display we need to launch hplip ...
Read more >Tray | Electron
Add icons and context menus to the system's notification area. ... Linux. Tray icon requires support of StatusNotifierItem in user's desktop environment.
Read more >Electron Tray Icon not working on Ubuntu 20.04 - Stack Overflow
I've tried to change the image resolution (16x16, 32x32, 64x64, 256x256) but nothing happened. did you find a solution for this?
Read more >Menu drop-down of system tray icon not working on Ubuntu ...
Dears, since last Steam update the drop-down menu of system tray icon (which I used to click to start my games) stopped to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just found this old thread. Looks like we still have this problem.
Tray icon is there, tooltip is there, popup messages are there, but the menu does not show up.
I have tested several NW versions and found that NW 0.40.2 was the latest version the menu is working for me. So:
@rogerwang Any ideas how to fix this? It looks like NW 0.40.2 is the last version with a menu on Linux and 0.50 added support for wayland so having to choose one or the other right now.