This file is indexed.

/usr/share/language-tools/set-language-helper is in accountsservice 0.6.40-2ubuntu10.

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
25
26
#!/bin/sh -e

homedir=$1
language=$2
validated_language=

[ -n "$language" -a -n "$homedir" ] || exit 1

langtoolsdir=/usr/share/language-tools

validated_language=$( $langtoolsdir/language-validate $language )

if ! dpkg -l language-selector-gnome > /dev/null 2>&1; then
    renewed_langlist=$validated_language
elif [ $language = "${language%:*}" ]; then
    renewed_langlist=$( $langtoolsdir/update-langlist $validated_language "$homedir" )
else
    # $language contains a priority list
    renewed_langlist=$validated_language:${language#*:}
fi

locale_name=$( $langtoolsdir/language2locale $validated_language )

( $langtoolsdir/save-to-pam-env "$homedir" $locale_name $renewed_langlist ) || exit 1

echo $validated_language