habacker added a comment.

  Does QStandardPaths provide a parameter to retrieve the runtime binary 
install location ? 
  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> ?
  With QLibraryInfo::location() I can set the prefix in the related qt.conf to 
what I want as shown by the following example.
  
  Install layout without 'bin' sub dir (kdeinit5.exe is located in the  
<install-root> dir)
  
  - no qt.conf required
  - or  qt.conf contains
  
  [Paths]
  Prefix = .
  Binaries = .
  
  Install layout with 'bin' sub dir (qt.conf and kdeinit5.exe are located in 
'<install-root>/bin' dir)
  
  [Paths]
  Prefix = ..
  Binaries = bin
  
  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.

REPOSITORY
  R303 KInit

REVISION DETAIL
  https://phabricator.kde.org/D7706

To: habacker
Cc: dfaure, #frameworks

Reply via email to