<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
v5.0.1</li>
<li><strong>Operating System:</strong><br>
Linux Mint 19.1, using the Cinnamon desktop environment</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When creating a tray and setting a click event (but no context menu) it was expected that the event would trigger when clicking directly on the tray icon.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Instead the tray displays a context menu with a normal menu item that uses as label the tray tooltip (or the project name if no tooltip has been set). The click event is triggered when clicking on the menu item, not on the tray icon.<br>
Also since the tooltip is used to create a menu item, none appears when hovering the tray icon.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Here's the repo for my project : <a href="mailto:git@github.com">git@github.com</a>:chrisalexandrepena/googledrive_linux.git<br>
The index.js only creates a tray with click event that opens a window.<br>
All that is needed to run the code is:<br>
$ git clone <a href="mailto:git@github.com">git@github.com</a>:chrisalexandrepena/googledrive_linux.git<br>
$ npm install<br>
$ npm start</p>
<ul dir="auto">
<li>
<p dir="auto">Output of <code class="notranslate">node_modules/.bin/electron --version</code>: v3.0.2 and v4.0.0</p>
</li>
<li>
<p dir="auto">Operating System (Platform and Version): Linux bitang 4.15.0-36-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16777688" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/39" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/39/hovercard" href="https://github.com/electron/electron/issues/39">#39</a>-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux</p>
</li>
<li>
<p dir="auto">Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): v2</p>
</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong></p>
<p dir="auto">I used the toggle show/hide of the window on the tray click and in v2 it was working.</p>
<p dir="auto"><strong>Actual behavior</strong></p>
<p dir="auto">When I click now on the tray, it opens the context menu - which was working on right click only.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">If you provide a URL, please list the commands required to clone/setup/run your repo e.g.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/patrikx3/onenote
$ npm install
$ ./bin/p3x-onenote.js"><pre class="notranslate">$ git clone https://github.com/patrikx3/onenote
$ npm install
$ ./bin/p3x-onenote.js</pre></div>
<p dir="auto"><strong>Screenshots</strong><br>
not applicable</p>
<p dir="auto"><strong>Additional Information</strong><br>
i suppose it is informative.</p>