/usr/share/kde4/apps/kconf_update/konsole-2.10.0-remove-menuindex-from-profiles.sh is in konsole 4:4.14.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/sh
# The "MenuIndex" entry in profile is expected to be absent or 0.
# However, old versions of konsole might leave some problematic
# "MenuIndex" entries due to buggy code. This script simply removes them.
local_path=`kde4-config --localprefix`
konsole_data_path="${local_path}/share/apps/konsole"
# do nothing when no user data exsit at all
if ! test -d "${konsole_data_path}" ; then
exit 0
fi
cd "${konsole_data_path}"
for i in *.profile ; do
# no match?
if test "$i" = "*.profile" ; then
break
fi
sed -i '/MenuIndex=/d' "$i"
done
|