This file is indexed.

/usr/share/apport/package-hooks/source_compiz.py is in compiz-core 1:0.9.12.2+16.04.20160415-0ubuntu1.

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
import apport.packaging
from apport.hookutils import *

def add_info(report, ui):

    # if it's a stacktrace, report it directly against the right component
    if "Stacktrace" in report:
        for external_component in ("/usr/lib/libnux", "/usr/lib/compiz/libunityshell", "/usr/lib/libunity"):
            for words in report["Stacktrace"].split():
                if words.startswith(external_component):
                    report.add_package_info(apport.packaging.get_file_package(words))
                    return
        report.add_hooks_info(ui, srcpackage='xorg')
        return

    # get the current profiles, gsettings returns the string quoted so strip those before using
    current_profile = command_output(['gsettings', 'get', 'org.compiz', 'current-profile']).strip("'")
    attach_gsettings_schema(report, 'org.compiz.core:/org/compiz/profiles/%s/plugins/core/' % current_profile)

    unity_bug = False
    if ui and "unity" in report['GsettingsChanges'] and report['SourcePackage'] != "unity":
        if ui.yesno("Thanks for reporting this bug. It seems you have unity running. Is the issue you are reporting is related to unity itself rather than compiz?"):
            unity_bug = True
            
    if unity_bug:
        report.add_package_info('unity')
        report.add_hooks_info(ui, srcpackage='unity')
        return

    # add all relevant info like xorg ones
    report.add_hooks_info(ui, srcpackage='xorg')