Commit d49365f2 authored by Sebastian Gottfried's avatar Sebastian Gottfried
Browse files

Use prefix.sh from ECM for Convenience Run Script

If there is already a conanical definition of all the required
environment variables to run a KDE app, we better make use of it.
parent 11074d9d
...@@ -14,7 +14,7 @@ BASEDIR=`readlink -f -- .` ...@@ -14,7 +14,7 @@ BASEDIR=`readlink -f -- .`
BUILDDIR=${BASEDIR}/build/$BUILD_TYPE BUILDDIR=${BASEDIR}/build/$BUILD_TYPE
INSTALLDIR=${BASEDIR}/install/$BUILD_TYPE INSTALLDIR=${BASEDIR}/install/$BUILD_TYPE
CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=${INSTALLDIR} -DCMAKE_BUILD_TYPE=$BUILD_TYPE ../.." CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=${INSTALLDIR} -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DKDE_INSTALL_PREFIX_SCRIPT=ON ../.."
# Use ninja instead of make if command is available # Use ninja instead of make if command is available
if [ -x "$(command -v ninja)" ]; then if [ -x "$(command -v ninja)" ]; then
...@@ -33,7 +33,5 @@ echo "Installing to '${INSTALLDIR}' ... " ...@@ -33,7 +33,5 @@ echo "Installing to '${INSTALLDIR}' ... "
cmake --build . --target install cmake --build . --target install
echo "Running KTouch ... " echo "Running KTouch ... "
export KDEDIRS=${INSTALLDIR}:$KDEDIRS source ${INSTALLDIR}/prefix.sh
export XDG_DATA_DIRS=${INSTALLDIR}/share:$XDG_DATA_DIRS
# export QT_SCALE_FACTOR=2
${INSTALLDIR}/bin/ktouch ${INSTALLDIR}/bin/ktouch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment