<table><tr><td style="">habacker added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7706" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Does QStandardPaths provide a parameter to retrieve the runtime binary install location ? <br />
For example if kdeinit5.exe is located in <install-root>/bin it should return <install-root> or if is installed in <install-root> and there is no 'bin' dir in path it should return <install-root> ?<br />
With QLibraryInfo::location() I can set the prefix in the related qt.conf to what I want as shown by the following example.</p>

<p>Install layout without 'bin' sub dir (kdeinit5.exe is located in the  <install-root> dir)</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">no qt.conf required</li>
<li class="remarkup-list-item">or  qt.conf contains</li>
</ul>

<p>[Paths]<br />
Prefix = .<br />
Binaries = .</p>

<p>Install layout with 'bin' sub dir (qt.conf and kdeinit5.exe are located in '<install-root>/bin' dir)</p>

<p>[Paths]<br />
Prefix = ..<br />
Binaries = bin</p>

<p>BTW: From the QStandardPaths documentation it looks that <APPDIR> is the nearest guess with a required patch to use <APPDIR>/..  if the executable is located in a  bin subdir and to use <APPDIR> otherwise. Unfortunally I do not see any StandardLocation which would provide this.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R303 KInit</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7706" rel="noreferrer">https://phabricator.kde.org/D7706</a></div></div><br /><div><strong>To: </strong>habacker<br /><strong>Cc: </strong>dfaure, Frameworks<br /></div>