summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-11 17:19:16 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-11 17:19:16 -0500
commit15fcb89ede2ac34ac792fcdd366f9503cd62165f (patch)
tree1559338187b2fa8fa5a9a99f94940f400e1bc8a7
parentd2f248bce13ac8a1e94fa387fea0592472749acb (diff)
downloadexperimental-15fcb89ede2ac34ac792fcdd366f9503cd62165f.tar.gz
experimental-15fcb89ede2ac34ac792fcdd366f9503cd62165f.zip
Fix ServiceTypes, ExcludeServiceTypes, and DocPath desktop file entries to match XDG specifications
-rwxr-xr-xkde-tde/convert_existing_kde3_app_to_tde8
1 files changed, 8 insertions, 0 deletions
diff --git a/kde-tde/convert_existing_kde3_app_to_tde b/kde-tde/convert_existing_kde3_app_to_tde
index 982e7c1..00c9ce4 100755
--- a/kde-tde/convert_existing_kde3_app_to_tde
+++ b/kde-tde/convert_existing_kde3_app_to_tde
@@ -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