PKGBUILDs/extra/freenx/kde-config.patch

18 lines
927 B
Diff
Raw Normal View History

2009-10-10 02:23:22 +00:00
--- nxloadconfig~ 2007-10-19 18:32:40.000000000 +0200
+++ nxloadconfig 2007-10-19 18:33:39.000000000 +0200
@@ -306,9 +306,11 @@
if [ "$ENABLE_KDE_CUPS" = "1" ]
then
- [ -z "$KDE_PRINTRC" -a -n "$KDEHOME" ] && KDE_PRINTRC="$KDEHOME/share/config/kdeprintrc"
- [ -z "$KDE_PRINTRC" ] && which kde-config >/dev/null 2>&1 && KDE_PRINTRC=$(kde-config --localprefix 2>/dev/null)"/share/config/kdeprintrc"
- [ -z "$KDE_PRINTRC" -o ! -r "$KDE_PRINTRC" ] && KDE_PRINTRC="$HOME/.kde/share/config/kdeprintrc"
+ if [ -f /opt/kde/bin/kde-config ]; then
+ [ -z "$KDE_PRINTRC" -a -n "$KDEHOME" ] && KDE_PRINTRC="$KDEHOME/share/config/kdeprintrc"
+ [ -z "$KDE_PRINTRC" ] && KDE_PRINTRC=$(/opt/kde/bin/kde-config --localprefix)"/share/config/kdeprintrc"
+ [ -z "$KDE_PRINTRC" -o ! -r "$KDE_PRINTRC" ] && KDE_PRINTRC="$HOME/.kde/share/config/kdeprintrc"
+ fi
fi
#########################################################################