Add apport hook to tag bug reports triggered by applications using the new ayatana-scrollbar

Bug #740278 reported by David Barth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity Foundations
Fix Released
High
Andrea Cimitan
overlay-scrollbar
Fix Released
High
Andrea Cimitan

Bug Description

Since the new ayatana-scrollbar hasn't been tested with all possible applications in Ubuntu, we need a simple way to tag bug reports triggered by issues that the scrollbar may have created.

Revision history for this message
David Barth (dbarth) wrote :

This is about adding an apport hook, to clarify.

Changed in ayatana-scrollbar:
assignee: nobody → Andrea Cimitan (cimi)
importance: Undecided → High
status: New → Triaged
affects: unity → unity-foundations
Changed in unity-foundations:
assignee: nobody → Andrea Cimitan (cimi)
importance: Undecided → High
status: New → Triaged
milestone: none → unity-3.6.8
Revision history for this message
Andrea Cimitan (cimi) wrote :

I guess this installed in /usr/share/apport/general-hooks/ayatana-scrollbar.py

I'm not sure of it, how it may work in a ubuntu installation... the last three tags are granted from my local install (I'm exporting symbols). Please ask an apport dev

def add_info(report):
    if report.has_key("ProcMaps") and "liboverlay-scrollbar" in report["ProcMaps"]:
        report['Tags'] = report.get('Tags', '') + ' ayatana-scrollbar'
    if report.has_key("Stacktrace") and "os-scrollbar.c" in report["Stacktrace"]:
        report['Tags'] = report.get('Tags', '') + ' ayatana-scrollbar_scrollbar'
    if report.has_key("Stacktrace") and "os-thumb.c" in report["Stacktrace"]:
        report['Tags'] = report.get('Tags', '') + ' ayatana-scrollbar_thumb'
    if report.has_key("Stacktrace") and "os-pager.c" in report["Stacktrace"]:
        report['Tags'] = report.get('Tags', '') + ' ayatana-scrollbar_pager'

Changed in unity-foundations:
milestone: unity-3.6.8 → unity-3.8.0-beta
Revision history for this message
Andrea Cimitan (cimi) wrote :

I'm not sure this is the proper way to do that, also I'm not sure if os-scrollbar.c and os-thumb.c and os-pager.c will be present in a usual ubuntu installation from packages (I'm exporting symbols and I've a local installation).
This file works in /usr/share/apport/general-hooks/ayatana-scrollbar.py

Andrea Cimitan (cimi)
Changed in ayatana-scrollbar:
status: Triaged → Fix Committed
Changed in unity-foundations:
status: Triaged → Fix Committed
status: Fix Committed → Fix Released
Changed in ayatana-scrollbar:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.