<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">11.4.4</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">W10P 20h2 19042.985</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">There should be an option to not enable fullpath but only name (like on chromium).</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">The fullpath seems to be always available whatever the flags sandbox or node_integration is set.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto">The function to detect whether the current window is maximized is invalid</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mainWindow = new BrowserWindow({
        height: 670,
        useContentSize: true,
        width: 1022,
        minWidth: 1022,
        frame: false,
        resizable: false,
        icon: path.resolve(__dirname, '../renderer/assets/icon.png')
    })"><pre class="notranslate"><code class="notranslate">mainWindow = new BrowserWindow({
        height: 670,
        useContentSize: true,
        width: 1022,
        minWidth: 1022,
        frame: false,
        resizable: false,
        icon: path.resolve(__dirname, '../renderer/assets/icon.png')
    })
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ipcMain.on('max', e =&gt; {
    if (mainWindow.isMaximized()) {
        mainWindow.unmaximize()
        // mainWindow.setFullScreen(false)
    } else {
        // mainWindow.setFullScreen(true)
        mainWindow.maximize()
    }
})"><pre class="notranslate"><code class="notranslate">ipcMain.on('max', e =&gt; {
    if (mainWindow.isMaximized()) {
        mainWindow.unmaximize()
        // mainWindow.setFullScreen(false)
    } else {
        // mainWindow.setFullScreen(true)
        mainWindow.maximize()
    }
})
</code></pre></div>
<p dir="auto"><code class="notranslate">mainWindow.isMaximized() </code>always returns false</p>