From 9f5a16bd51f8499484f958d2eed456d435416bec Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 2 Jun 2011 19:42:51 +0200 Subject: [PATCH] kickoffcfg: add full path to find k*conf kde tools to work in makedist --- bin/kickoffcfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/kickoffcfg b/bin/kickoffcfg index 8fbfd4e..921af22 100755 --- a/bin/kickoffcfg +++ b/bin/kickoffcfg @@ -7,7 +7,7 @@ exit 1 } -FAVORITES=`kreadconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs 2>/dev/null` +FAVORITES=`/opt/kde/bin/kreadconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs 2>/dev/null` if [ "$1" = "--add-favorite" ]; then # ADD @@ -17,15 +17,15 @@ if [ "$1" = "--add-favorite" ]; then else FAVORITES="$2" fi - kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $FAVORITES + /opt/kde/bin/kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $FAVORITES } elif [ "$1" = "--del-favorite" ]; then # DELETE MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||" | sed "s| ,||" | sed "s|,,|,|"` if [ ! "$MODFAVORITES" ]; then - kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs '' + /opt/kde/bin/kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs '' elif [ "$FAVORITES" != "$MODFAVORITES" ]; then - kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $MODFAVORITES + /opt/kde/bin/kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $MODFAVORITES fi else echo "Invalid option $1; aborting."