<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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">12.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Other Linux</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Centos 8</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">win.webContents.print</code> should print a non blank page when configured in silent mode in linux.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">win.webContents.print</code> doesn't print anything.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><a href="https://gist.github.com/tomaspiaggio/0c0d259d88256b81794f6f1430b3e260">https://gist.github.com/tomaspiaggio/0c0d259d88256b81794f6f1430b3e260</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I've encountered this problem both on Ubuntu 18.04 and Centos 8. It works both on Windows 10 and macOS 10.15.7.</p>
<p dir="auto">The printer I'm using is a Brother QL-800 (thermal label printer, 62mm x 100mm). The OSs have the correct drivers, and the printer is set to default. I've tried setting the device name manually on the print options unsuccessfully.</p>
<p dir="auto"><strong>What's the problem?</strong></p>
<p dir="auto">The <code class="notranslate">win.webContents.print</code> does not work on linux when configured on silent mode.</p>
<p dir="auto">I've replicated the problem on two other printers (another QL-800, and a QL-700)</p>
<p dir="auto"><strong>Why do I think that this is an electron bug?</strong></p>
<ul dir="auto">
<li>When I set silent to false, it works</li>
<li>Printing test prints directly on the printer works fine</li>
<li>Print to pdf works</li>
<li><code class="notranslate">window.print</code> works</li>
<li>behaviour changes between linus and windows/macos</li>
</ul>
<p dir="auto">On previous versions (11.1.1), the printer inconsistently printed blank pages, which threw me off even more than this.</p>
<p dir="auto">Please do tell me if I'm doing anything wrong, or if you can't replicate the problem.</p>
<p dir="auto">Thank you in advance.</p>
<p dir="auto">Hi, I just upgraded to electron 3.0 and noticed that my applications windows controls are no longer there. I use titlebarStyle: 'hiddenInset' so that I can have the native OS's buttons as my windows controls, and it worked great until I upgraded to 3.0</p>
<p dir="auto"><strong>Expected Behavior</strong><br>
The macOS buttons should be shown on the top left like in previous versions</p>
<p dir="auto"><strong>Actual behavior</strong><br>
The buttons are not there. Though, if you click where the buttons should be the actions work, and if you fullscreen the application and then take it out of fullscreen the buttons start to show.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
By just adding the titleBarStyle option, or use the code below.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="   this.mainWindow = new BrowserWindow({
      show: false, // .show() once 'ready-to-show'
      backgroundColor: '#fff',
      titleBarStyle: 'hiddenInset',
    });"><pre class="notranslate"><code class="notranslate">   this.mainWindow = new BrowserWindow({
      show: false, // .show() once 'ready-to-show'
      backgroundColor: '#fff',
      titleBarStyle: 'hiddenInset',
    });
</code></pre></div>