<p dir="auto">I am aware of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169910113" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/6773" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/6773/hovercard" href="https://github.com/electron/electron/issues/6773">#6773</a>, but I thought this should be a separate issue (the former being Ubuntu specific).<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seppestas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seppestas">@seppestas</a> maybe can tell if it's a duplicate ?</p>
<p dir="auto">Consider the following simple app:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const {app, Menu, Tray} = require('electron')

app.on('ready', () =&gt; {
    const appIcon = new Tray('/path/to/icon.png')
    const contextMenu = Menu.buildFromTemplate([
        {label: 'Item1', type: 'radio'},
        {label: 'Item2', type: 'radio'}
    ])

    appIcon.setContextMenu(contextMenu)
    appIcon.on('click', () =&gt; console.log('click'))
})"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span>app<span class="pl-kos">,</span> Menu<span class="pl-kos">,</span> Tray<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span>

<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
    <span class="pl-k">const</span> <span class="pl-s1">appIcon</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Tray</span><span class="pl-kos">(</span><span class="pl-s">'/path/to/icon.png'</span><span class="pl-kos">)</span>
    <span class="pl-k">const</span> <span class="pl-s1">contextMenu</span> <span class="pl-c1">=</span> <span class="pl-v">Menu</span><span class="pl-kos">.</span><span class="pl-en">buildFromTemplate</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
        <span class="pl-kos">{</span><span class="pl-c1">label</span>: <span class="pl-s">'Item1'</span><span class="pl-kos">,</span> <span class="pl-c1">type</span>: <span class="pl-s">'radio'</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
        <span class="pl-kos">{</span><span class="pl-c1">label</span>: <span class="pl-s">'Item2'</span><span class="pl-kos">,</span> <span class="pl-c1">type</span>: <span class="pl-s">'radio'</span><span class="pl-kos">}</span>
    <span class="pl-kos">]</span><span class="pl-kos">)</span>

    <span class="pl-s1">appIcon</span><span class="pl-kos">.</span><span class="pl-en">setContextMenu</span><span class="pl-kos">(</span><span class="pl-s1">contextMenu</span><span class="pl-kos">)</span>
    <span class="pl-s1">appIcon</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><code class="notranslate">click</code> events are not fired when clicking the tray icon. As noted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169910113" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/6773" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/6773/hovercard" href="https://github.com/electron/electron/issues/6773">#6773</a>, this means <a href="https://github.com/maxogden/menubar">menubar</a> apps will not work.</p>
<p dir="auto">macOS version: 10.12<br>
Electron version: 1.4.6</p>
<ul dir="auto">
<li>Electron version: 0.35.0</li>
<li>Operating system: OS X</li>
</ul>
<p dir="auto">Currently the click event on the tray doesn't trigger on OS X, it does so on Windows</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="tray = new Tray(path.join(__dirname, '/img/app.png'));
tray.on('click', function(){
        if (mainWindow.isMinimized()) mainWindow.restore();
        mainWindow.focus();
    });"><pre class="notranslate"><span class="pl-s1">tray</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Tray</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'/img/app.png'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">tray</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
        <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">isMinimized</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">restore</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
        <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">focus</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>