Commit 9f5a16bd51f8499484f958d2eed456d435416bec

Authored by Silvan Calarco
1 parent 705e244021
Exists in master

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

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -7,7 +7,7 @@
7 7 exit 1
8 8 }
9 9  
10   -FAVORITES=`kreadconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs 2>/dev/null`
  10 +FAVORITES=`/opt/kde/bin/kreadconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs 2>/dev/null`
11 11  
12 12 if [ "$1" = "--add-favorite" ]; then
13 13 # ADD
14 14  
15 15  
... ... @@ -17,15 +17,15 @@
17 17 else
18 18 FAVORITES="$2"
19 19 fi
20   - kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $FAVORITES
  20 + /opt/kde/bin/kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $FAVORITES
21 21 }
22 22 elif [ "$1" = "--del-favorite" ]; then
23 23 # DELETE
24 24 MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||" | sed "s| ,||" | sed "s|,,|,|"`
25 25 if [ ! "$MODFAVORITES" ]; then
26   - kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs ''
  26 + /opt/kde/bin/kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs ''
27 27 elif [ "$FAVORITES" != "$MODFAVORITES" ]; then
28   - kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $MODFAVORITES
  28 + /opt/kde/bin/kwriteconfig --file /opt/kde/share/config/kickoffrc --group Favorites --key FavoriteURLs $MODFAVORITES
29 29 fi
30 30 else
31 31 echo "Invalid option $1; aborting."