This file is indexed.

/usr/share/avant-window-navigator/applets/slickswitcher/settings.py is in awn-applet-slickswitcher 0.4.1~bzr1507-0ubuntu7.

This file is owned by root:root, with mode 0o644.

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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010 sharkbaitbobby <sharkbaitbobby+awn@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

import awn

from desktopagnostic.config import GROUP_DEFAULT


class Settings():
    def __init__(self, applet):
        #Get an AwnConfigClient
        self.config = awn.config_get_default_for_applet(applet)

        #Get a dictionary
        self.dict = {}
        self.__getitem__ = self.dict.__getitem__

        #List of strings to get
        list_of_strings = ['icon_border', 'normal_border', 'active_border', \
            'window_main', 'window_border', 'shine_top', 'shine_bottom', \
            'shine_hover_top', 'shine_hover_bottom', 'text_color', 'shadow_color', \
            'custom_back', 'custom_border', 'background_mode', 'background_file']

        #List of integers to get
        list_of_integers = ['width', 'height']

        #List of booleans to get
        list_of_booleans = ['use_custom', 'use_custom_text']

        #Get all the values
        #Strings
        for string in list_of_strings:
            self[string] = self.config.get_value(GROUP_DEFAULT, string)
        #Integers
        for integer in list_of_integers:
            self[integer] = self.config.get_value(GROUP_DEFAULT, integer)
            if integer == 'width' and self[integer] < 24:
                self[integer] = 160
            elif integer == 'height' and self[integer] < 24:
                self[integer] = 110
        #Booleans
        for boolean in list_of_booleans:
            self[boolean] = self.config.get_value(GROUP_DEFAULT, boolean)

        #Connect to changes to all the values
        for value in list_of_strings + list_of_integers + list_of_booleans:
            self.config.notify_add(GROUP_DEFAULT, value, self.value_changed)

    def value_changed(self, group, key, value):
        self.dict[key] = value

    def __setitem__(self, key, value, internal=False):
        if key in self.dict and value != self.dict[key]:
            self.config.set_value(GROUP_DEFAULT, key, value)

        self.dict[key] = value