kickoffcfg: add full path to find k*conf kde tools to work in makedist

This commit is contained in:
Silvan Calarco 2011-06-02 19:42:51 +02:00
parent 705e244021
commit 9f5a16bd51

View File

@ -7,7 +7,7 @@
exit 1 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 if [ "$1" = "--add-favorite" ]; then
# ADD # ADD
@ -17,15 +17,15 @@ if [ "$1" = "--add-favorite" ]; then
else else
FAVORITES="$2" FAVORITES="$2"
fi 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 elif [ "$1" = "--del-favorite" ]; then
# DELETE # DELETE
MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||" | sed "s| ,||" | sed "s|,,|,|"` MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||" | sed "s| ,||" | sed "s|,,|,|"`
if [ ! "$MODFAVORITES" ]; then 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 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 fi
else else
echo "Invalid option $1; aborting." echo "Invalid option $1; aborting."