kgtk-qt3 – TDE dialogs in GTK 2.x applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
599B

  1. #!/bin/bash
  2. #
  3. # This script is part of the KGtk package.
  4. #
  5. # (C) Craig Drummond, 2007
  6. #
  7. # Craig.Drummond@lycos.co.uk
  8. #
  9. # --
  10. # Released under the GPL v2 or later
  11. # --
  12. #
  13. app=`basename $0`
  14. if [ "$app" = "kqt3-wrapper" ] ; then
  15. LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib/kgtk/libkqt3.so:$LD_PRELOAD "$@"
  16. else
  17. dir=`dirname $0`
  18. oldPath=$PATH
  19. PATH=`echo $PATH | sed s:$dir::g`
  20. real=`which $app`
  21. PATH=$oldPath
  22. if [ "$real" != "" ] && [ "`dirname $real`" != "$dir" ] ; then
  23. LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@/kgtk/libkqt3.so:$LD_PRELOAD $real "$@"
  24. fi
  25. fi