Re-fix my module search path fixup.

I thought KF5 had removed /apps/ from the DATA_INSTALL_DIR, and so
adjusted the CMakeLists.txt install to match when it turned out my
module search paths were wrong.  Turns out /apps/ is used, so put that
path and adjust module search paths instead.
wilder
Michael Pyne 9 years ago
parent ccae52af67
commit 0c565a6ad9
  1. 4
      CMakeLists.txt
  2. 2
      kdesrc-build
  3. 2
      modules/ksb/Application.pm

@ -22,8 +22,8 @@ if (ECM_FOUND)
endif()
else()
message(WARNING "Did not find extra-cmake-modules; documentation will not be built and install paths will be guessed based on CMake settings.")
# ECM sets DATA_INSTALL_DIR to PREFIX/share, try to match
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "The parent directory where applications can install their data")
# ECM sets DATA_INSTALL_DIR to PREFIX/share/apps, try to match
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/apps" CACHE PATH "The parent directory where applications can install their data")
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "The install dir for executables")
endif()

@ -33,7 +33,7 @@
# Adding an option? Grep for 'defaultGlobalOptions' in ksb::BuildContext --mpyne
use FindBin qw($RealBin);
use lib "$RealBin/../share/kdesrc-build/modules";
use lib "$RealBin/../share/apps/kdesrc-build/modules";
use lib "$RealBin/modules";
# Force all symbols to be in this package. We can tell if we're being called

@ -2346,7 +2346,7 @@ sub _installCustomSessionDriver
my $xdgDataHome = $ENV{XDG_DATA_HOME} || "$ENV{HOME}/.local/share";
# First we have to find the source
my @searchPaths = ($RealBin, map { "$_/kdesrc-build" } ($xdgDataHome, @xdgDataDirs));
my @searchPaths = ($RealBin, map { "$_/apps/kdesrc-build" } ($xdgDataHome, @xdgDataDirs));
s{/+$}{} foreach @searchPaths; # Remove trailing slashes
s{//+}{/}g foreach @searchPaths; # Remove duplicate slashes

Loading…
Cancel
Save