Fix ServiceTypes, ExcludeServiceTypes, and DocPath desktop file entries to match XDG specifications

pull/1/head
Timothy Pearson 10 years ago
parent d2f248bce1
commit 15fcb89ede

@ -491,6 +491,14 @@ xargs -r0 sed -ri \
# Convert desktop files
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i '/^Keyword/ { s,\,,;,g }' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ServiceTypes=/X-TDE-ServiceTypes=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ServiceTypes\[\(.*\)\]=/X-TDE-ServiceTypes\[\1\]=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ExcludeServiceTypes=/X-TDE-ExcludeServiceTypes=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^ExcludeServiceTypes\[\(.*\)\]=/X-TDE-ExcludeServiceTypes\[\1\]=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^DocPath=/X-DocPath=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^DocPath\[\(.*\)\]=/X-DocPath\[\1\]=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^InitialPreference=/X-TDE-InitialPreference=/g' {} \;
find ./ -type f -iname "*.desktop" -not -iwholename '*.git*' -exec sed -i 's/^InitialPreference\[\(.*\)\]=/X-TDE-InitialPreference\[\1\]=/g' {} \;
# Rename files
find . -name "kio_*" | while read f; do mv "${f}" "${f/kio_/tdeio_}"; done

Loading…
Cancel
Save