This file is indexed.

/usr/share/kde4/apps/kconf_update/konsole-2.9.0-global-options.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/sh

# Starting from konsole 2.9.0, menubar and tabbar setttings are global instead of per profile
# This stupid script migrates those settings from default profile into konsolerc

default_profile_name=`kreadconfig --file konsolerc --group 'Desktop Entry' --key DefaultProfile`

# empty name implies that the user use is using the stock profile 
if test -z "$default_profile_name" ; then
    exit 0
fi

default_profile_path=""

OLD_IFS="$IFS"
IFS=":"
for path in `kde4-config --path data`; do
    if test -f "$path/konsole/$default_profile_name"; then
        default_profile_path="$path/konsole/$default_profile_name"
        break
    fi
done
IFS="$OLD_IFS"

# empty path implies that the specified default profile does not exist
if test -z "$default_profile_path" ; then
    exit 0
fi

echo "[KonsoleWindow]"

show_menu_bar=`kreadconfig --file "$default_profile_path" --group 'General' --key 'ShowMenuBar'`
if test -n "$show_menu_bar"; then
    echo "ShowMenuBarByDefault=$show_menu_bar"
fi

echo "[TabBar]"

# The order of enum value has changed
tab_bar_visibility=`kreadconfig --file "$default_profile_path" --group 'General' --key 'TabBarMode'`
if test -n "$tab_bar_visibility"; then
    new_value=""

    if test "$tab_bar_visibility" = "0" ; then
        new_value="2"
    elif test "$tab_bar_visibility" = "1" ; then
        new_value="1"
    elif test "$tab_bar_visibility" = "2" ; then
        new_value="0"
    fi

    if test -n "$new_value"; then
        echo "TabBarVisibility=$new_value"
    fi
fi

# The order of this enum value has changed
tab_bar_position=`kreadconfig --file "$default_profile_path" --group 'General' --key 'TabBarPosition'`
if test -n "$tab_bar_position"; then
    new_value=""
    if test "$tab_bar_position" = "0" ; then
        new_value="1"
    elif test "$tab_bar_position" = "1" ; then
        new_value="0"
    fi

    if test -n "$new_value"; then
        echo "TabBarPosition=$new_value"
    fi
fi


show_quick_buttons=`kreadconfig --file "$default_profile_path" --group 'General' --key 'ShowNewAndCloseTabButtons'`
if test -n "$show_quick_buttons"; then
    echo "ShowQuickButtons=$show_quick_buttons"
fi

new_tab_behavior=`kreadconfig --file "$default_profile_path" --group 'General' --key 'NewTabBehavior'`
if test -n "$new_tab_behavior"; then
    echo "NewTabBehavior=$new_tab_behavior"
fi