kickoffcfg: add full path to find k*conf kde tools to work in makedist
This commit is contained in:
parent
705e244021
commit
9f5a16bd51
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user