Hacky code for attaching GSettings in our Apport hooks

Bug #1486539 reported by Sergey "Shnatsel" Davidoff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elementary OS
New
Wishlist
Unassigned

Bug Description

The code for attaching GSettings for our apps from Apport hooks is rather hacky and duplicated in each hook.

Looks like there's a more proper facility for doing that. Here's what I've found in /usr/lib/python3/dist-packages/apport/packaging_impl.py:

    def get_modified_conffiles(self, package):
        '''Return modified configuration files of a package.

        Return a file name -> file contents map of all configuration files of
        package. Please note that apport.hookutils.attach_conffiles() is the
        official user-facing API for this, which will ask for confirmation
        and allows filtering.

description: updated
Changed in elementaryos:
milestone: none → loki-beta1
Cody Garver (codygarver)
Changed in elementaryos:
milestone: loki-beta1 → none
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.