<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/main/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/main/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">16.0.0-beta.4</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Ubuntu</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">20.04</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">15.3.0</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">On Linux, <code class="notranslate">app.getPath('crashDumps')</code> should return something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/.config/{{appName}}/Crash Reports/"><pre class="notranslate"><code class="notranslate">~/.config/{{appName}}/Crash Reports/
</code></pre></div>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">However, with v16 beta it returns:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/.config/Electron/Crash Reports/"><pre class="notranslate"><code class="notranslate">~/.config/Electron/Crash Reports/
</code></pre></div>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></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/main/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/main/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">16.0.0-beta.3</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">Linux pop-os 5.13.0-7614-generic #⁠14~1631647151~21.04~930e87c-Ubuntu</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">15.3.0</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">From the documentation for <code class="notranslate">app.getPath("userData")</code> (<a href="https://www.electronjs.org/docs/latest/api/app#appgetpathname" rel="nofollow">https://www.electronjs.org/docs/latest/api/app#appgetpathname</a>):</p>
<blockquote>
<p dir="auto">The directory for storing your app's configuration files, which by default it is the appData directory appended with your app's name.</p>
</blockquote>
<p dir="auto">So <code class="notranslate">app.getPath("userData")</code> in the linked gist should be <code class="notranslate">~/.config/test-electron</code>.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">app.getName()</code> returns the correct name from package.json but <code class="notranslate">app.getPath("userData")</code> returns <code class="notranslate">~/.config/Electron</code>.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><a href="https://gist.github.com/weedz/ad42b854df4e5bc411d18e48ae1c91df">https://gist.github.com/weedz/ad42b854df4e5bc411d18e48ae1c91df</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Found this issue which might be relevant <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="943706384" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/30112" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/30112/hovercard" href="https://github.com/electron/electron/issues/30112">#30112</a>.</p>
<p dir="auto">Same result in the following devcontainer <a href="https://gist.github.com/weedz/c962d69078391115635772b279264c02">https://gist.github.com/weedz/c962d69078391115635772b279264c02</a>.</p>