From c6ca83d07d95e076b09bd802f66ba72d363b0235 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 9 Sep 2010 20:27:19 +0000 Subject: * Added kgtk-qt3 * Slight kpowersave message cleanup git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kgtk-qt3@1173604 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- gtk2/kgtk2-wrapper.cmake | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 gtk2/kgtk2-wrapper.cmake (limited to 'gtk2/kgtk2-wrapper.cmake') diff --git a/gtk2/kgtk2-wrapper.cmake b/gtk2/kgtk2-wrapper.cmake new file mode 100755 index 0000000..46865b7 --- /dev/null +++ b/gtk2/kgtk2-wrapper.cmake @@ -0,0 +1,33 @@ +#!/bin/bash + +# +# This script is part of the KGtk package. +# +# (C) Craig Drummond, 2007 +# +# Craig.Drummond@lycos.co.uk +# +# -- +# Released under the GPL v2 or later +# -- +# + +if [ "`locale | grep 'LANG=' | grep -i 'utf-8' | wc -l`" = "0" ] ; then + export G_BROKEN_FILENAMES=1 +fi + +app=`basename $0` + +if [ "$app" = "kgtk2-wrapper" ] ; then + LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib/kgtk/libkgtk2.so:$LD_PRELOAD "$@" +else + dir=`dirname $0` + oldPath=$PATH + PATH=`echo $PATH | sed s:$dir::g` + real=`which $app` + PATH=$oldPath + + if [ "$real" != "" ] && [ "`dirname $real`" != "$dir" ] ; then + LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@/kgtk/libkgtk2.so:$LD_PRELOAD $real "$@" + fi +fi -- cgit v1.2.1