Skip to content

Commit

Permalink
crash_reports: bugfix: use cf in set_symbolicated
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Mar 24, 2022
1 parent 78d7352 commit 55052d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rpcclient/rpcclient/darwin/crash_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def set_symbolicated(self, enabled: bool = True):
enable/disable crash reports symbolication
https://github.com/dlevi309/Symbolicator
"""
with self._client.sc.open(
'/var/root/Library/Preferences/com.apple.CrashReporter.plist') as pref:
pref.set_dict({'SymbolicateCrashes': enabled})
self._client.preferences.cf.set('SymbolicateCrashes', enabled, 'com.apple.CrashReporter', 'root')

def list(self, prefixed='') -> List[CrashReport]:
""" get a list of all crash reports as CrashReport parsed objects """
Expand Down

0 comments on commit 55052d4

Please sign in to comment.