D7706: Use runtime install prefix instead of compile time install prefix.

Ralf Habacker noreply at phabricator.kde.org
Sun Sep 10 14:49:38 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170910/63454e9e/attachment.html>


More information about the Kde-frameworks-devel mailing list