<p dir="auto">Hi. I have a problem with the Tray icon.</p>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>8.2.5</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Ubuntu 18.04</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>7.2.4</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The Tray Icon always display after go out from sleep mode</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">After go out from sleep mode the tray icon is hidden.</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">If just start app after <code class="notranslate">npm start</code> see screen <a href="https://prnt.sc/scnq37" rel="nofollow">https://prnt.sc/scnq37</a> then go to sleep mode.<br>
After go out from sleep mode the tray icon is hidden see screen <a href="https://prnt.sc/scnu75" rel="nofollow">https://prnt.sc/scnu75</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">The problem in versions 8.0.0-8.2.5.<br>
I installed a less v7.2.4 and it works. After sleep mode icon is display<br>
My example <a href="https://github.com/trae-op/test-electron-app">https://github.com/trae-op/test-electron-app</a></p>
<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
8.0.0</li>
<li><strong>Operating System:</strong><br>
Ubuntu 18.04.4 LTS x64</li>
<li><strong>Last Known Working Electron version:</strong><br>
7.1.13</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When the system goes in stand by the Tray icon should stay visible in the Topbar</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When system goes stand by the Tray icon disappear</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">I set the icon and the Menu in main process:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let tray;
const icon = path.join(__dirname, &quot;./icon.png&quot;);
const tryMenu = Menu.buildFromTemplate([
  { label: &quot;Reload&quot;, role: &quot;reload&quot; },
  { label: &quot;Toggle dev tools&quot;, role: &quot;toggleDevTools&quot; }
]);
tray = new Tray(icon);
tray.setContextMenu(tryMenu);"><pre class="notranslate"><code class="notranslate">let tray;
const icon = path.join(__dirname, "./icon.png");
const tryMenu = Menu.buildFromTemplate([
  { label: "Reload", role: "reload" },
  { label: "Toggle dev tools", role: "toggleDevTools" }
]);
tray = new Tray(icon);
tray.setContextMenu(tryMenu);
</code></pre></div>
<p dir="auto">When starting electron everything works fine: the icon (and the menu) is visible in the Topbar.<br>
But if system goes stand by, when I log in again the icon is disappeared.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/p-fusi/electron-quick-start -b master
$ npm install
$ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/p-fusi/electron-quick-start -b master
$ npm install
$ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div>