{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/6715","repository_url":"https://api.github.com/repos/nwjs/nw.js","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/6715/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/6715/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/6715/events","html_url":"https://github.com/nwjs/nw.js/issues/6715","id":336548501,"node_id":"MDU6SXNzdWUzMzY1NDg1MDE=","number":6715,"title":"Tray menu is not working on Linux","user":{"login":"cryomi","id":7384006,"node_id":"MDQ6VXNlcjczODQwMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/7384006?v=4","gravatar_id":"","url":"https://api.github.com/users/cryomi","html_url":"https://github.com/cryomi","followers_url":"https://api.github.com/users/cryomi/followers","following_url":"https://api.github.com/users/cryomi/following{/other_user}","gists_url":"https://api.github.com/users/cryomi/gists{/gist_id}","starred_url":"https://api.github.com/users/cryomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryomi/subscriptions","organizations_url":"https://api.github.com/users/cryomi/orgs","repos_url":"https://api.github.com/users/cryomi/repos","events_url":"https://api.github.com/users/cryomi/events{/privacy}","received_events_url":"https://api.github.com/users/cryomi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-28T09:42:54Z","updated_at":"2018-06-29T01:56:47Z","closed_at":null,"author_association":"NONE","body":"NWJS Version : v0.31.4 default/sdk and previous.\r\n\r\nOperating System :\r\n1. Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux\r\n2. Linux 4.14.44-1-MANJARO #1 SMP PREEMPT Fri May 25 18:35:59 UTC 2018 x86_64 GNU/Linux\r\n\r\n**Tray icon should be shown, but it is not.** \r\n\r\n```\r\nvar trayOptions = {\r\n    icon: 'images/ic_launcher_20.png',\r\n    click: function () {\r\n        win.show();\r\n    },\r\n    title: __('about_plain_text')\r\n};\r\n\r\nconverse.tray = new nw.Tray(trayOptions);\r\nvar submenuMainTray = new nw.Menu();\r\n\r\nquitAll.click = function () {\r\n   closeMe();\r\n};\r\n\r\nsubmenuMainTray.insert(quitAll);\r\n```\r\n\r\n\r\n```\r\nFontconfig warning: \"/etc/fonts/fonts.conf\", line 160: blank doesn't take any effect anymore. please remove it from your fonts.conf\r\n[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.\r\nGkr-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.\r\n[1596:1596:0628/051854.367792:ERROR:gpu_process_transport_factory.cc(1022)] Lost UI shared context.\r\n[1636:1652:0628/051854.439131:ERROR:command_buffer_proxy_impl.cc(133)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.\r\n[1596:1596:0628/051855.751093:ERROR:browser_main_loop.cc(269)] GLib-GObject: g_object_unref: assertion 'G_IS_OBJECT (object)' failed\r\n\r\n(MyApp:1596): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: The connection is closed\r\n[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.\r\n```\r\n\r\n```\r\n# systemctl status dbus.service \r\n● dbus.service - D-Bus System Message Bus\r\n   Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled)\r\n   Active: active (running) since Tue 2018-06-19 15:26:28 EDT; 1 weeks 1 days ago\r\n     Docs: man:dbus-daemon(1)\r\n Main PID: 377 (dbus-daemon)\r\n    Tasks: 1 (limit: 4915)\r\n   CGroup: /system.slice/dbus.service\r\n           └─377 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation\r\n\r\nJun 28 05:05:47 sdr dbus[377]: [system] Successfully activated service 'org.freedesktop.hostname1'\r\nJun 28 05:05:48 sdr dbus[377]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'\r\nJun 28 05:05:49 sdr dbus[377]: [system] Successfully activated service 'org.freedesktop.locale1'\r\nJun 28 05:06:09 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out\r\nJun 28 05:08:05 sdr dbus[377]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'\r\nJun 28 05:08:30 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out\r\nJun 28 05:18:51 sdr dbus[377]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'\r\nJun 28 05:19:16 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out\r\nJun 28 05:22:25 sdr dbus[377]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'\r\nJun 28 05:22:50 sdr dbus[377]: [system] Failed to activate service 'org.bluez': timed out\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/comments/401224456","html_url":"https://github.com/nwjs/nw.js/issues/6715#issuecomment-401224456","issue_url":"https://api.github.com/repos/nwjs/nw.js/issues/6715","id":401224456,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTIyNDQ1Ng==","user":{"login":"Christywl","id":20039821,"node_id":"MDQ6VXNlcjIwMDM5ODIx","avatar_url":"https://avatars1.githubusercontent.com/u/20039821?v=4","gravatar_id":"","url":"https://api.github.com/users/Christywl","html_url":"https://github.com/Christywl","followers_url":"https://api.github.com/users/Christywl/followers","following_url":"https://api.github.com/users/Christywl/following{/other_user}","gists_url":"https://api.github.com/users/Christywl/gists{/gist_id}","starred_url":"https://api.github.com/users/Christywl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Christywl/subscriptions","organizations_url":"https://api.github.com/users/Christywl/orgs","repos_url":"https://api.github.com/users/Christywl/repos","events_url":"https://api.github.com/users/Christywl/events{/privacy}","received_events_url":"https://api.github.com/users/Christywl/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T01:56:47Z","updated_at":"2018-06-29T01:56:47Z","author_association":"CONTRIBUTOR","body":"Your codes aren't full. I try a simple test on Linux Ubuntu with nwjs-sdk-v0.31.4, it works fine. The tray icon is shown.\r\n```\r\n<script>\r\nvar tray = new nw.Tray({ title: 'Tray', icon: 'icon.png' });\r\nvar menu = new nw.Menu();\r\nmenu.append(new nw.MenuItem({ type: 'checkbox', label: 'box1' }));\r\ntray.menu = menu;\r\n</script>\r\n```\r\n"}}
{"actor":{"display_login":"Christywl"}}