~azzar1/unity/proper-reboot

« back to all changes in this revision

Viewing changes to debian/source_unity.py

  • Committer: CI Train Bot
  • Author(s): Sebastien Bacher
  • Date: 2015-12-11 12:46:06 UTC
  • mfrom: (4036.6.1 unity)
  • Revision ID: ci-train-bot@canonical.com-20151211124606-9w0s4k9nb1yk27kk
Updated apport hook to include:
- the compiz and xorg details, not only after asking users if the issue
is a graphical one (which is weird question)
- the upstart logs for unity/ups/lockscreen
- some gsettings configurations Fixes: #1508974
Approved by: PS Jenkins bot, Marco Trevisan (Treviño)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
                report.add_package_info(apport.packaging.get_file_package(words))
22
22
                return
23
23
 
24
 
    # only reports all compiz infos if a graphical bug
25
 
    compiz_bug = False
26
 
    if ui and report['SourcePackage'] == "unity":
27
 
        if ui.yesno("Thanks for reporting this bug on unity.  Is the issue you are reporting purely graphical (will report more information about your graphic configuration and will report the bug against compiz)?"):
28
 
            compiz_bug = True
29
 
    if compiz_bug:
30
 
        report.add_hooks_info(ui, srcpackage='compiz')
31
 
    else:
32
 
        # still send some info like the plugins activated
33
 
        # Plugins
34
 
        report['CompizPlugins'] = command_output(['gconftool-2',
35
 
            '--get', '/apps/compiz-1/general/screen0/options/active_plugins'])
36
 
 
37
 
        # User configuration
38
 
        report['GconfCompiz'] = command_output(['gconftool-2', '-R', '/apps/compiz-1'])
 
24
    # Include the compiz details
 
25
    report.add_hooks_info(ui, srcpackage='compiz')
 
26
    # the upstart logs
 
27
    attach_upstart_logs(report, 'unity-services')
 
28
    attach_upstart_logs(report ,'libunity-core-6.0-9')
 
29
    # some gsettings configs
 
30
    attach_gsettings_schema(report, 'com.canonical.Unity')
 
31
    attach_gsettings_schema(report, 'com.ubuntu.user-interface')
 
32
    attach_gsettings_schema(report, 'org.gnome.desktop.interface')
 
33
    attach_gsettings_schema(report, 'org.gnome.desktop.lockdown')