Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Prefs Read/Write Fix - #79

Merged
chilcote merged 2 commits into
chilcote:masterfrom
gsmc-alx:master
Oct 23, 2020
Merged

chilcote merged 2 commits into
chilcote:masterfrom
gsmc-alx:master

Conversation

@gsmc-alx

Copy link
Copy Markdown

Fix to preference read/write, following removal of plistlib.readPlist() and plistlib.writePlist() from Python 3.8.

Fix to preference read/write, following removal of plistlib.readPlist() and plistlib.writePlist() from Python 3.8.

@chilcote chilcote left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixe those two and it looks reasonable to me. Thanks!

Comment thread pkgroot/usr/local/outset/outset Outdated
prefs["override_login_once"] = override_items
plistlib.writePlist(prefs, outset_preferences)
with open(outset_preferences, 'wb') as fp:
prefs = plistlib.dump(fp)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forgot to pass prefs to plistlib.dump here

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to plistlib.dump(prefs, fp)

Comment thread pkgroot/usr/local/outset/outset Outdated
del prefs["override_login_once"][script]
plistlib.writePlist(prefs, outset_preferences)
with open(outset_preferences, 'wb') as fp:
prefs = plistlib.dump(fp)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here
change to plistlib.dump(prefs, fp)

@gsmc-alx

Copy link
Copy Markdown
Author

I’m running a system update on my laptop at the moment, so can’t fix those issues right now, unfortunately.

Could you maybe fix them at your end, if you have a moment?

Had forgotten to pass prefs to plistlib.dump().
@gsmc-alx

Copy link
Copy Markdown
Author

Laptop update finished. Fixed those two issues. Sorry about that- silly mistakes...

@chilcote

Copy link
Copy Markdown
Owner

Looks good to me. I'll merge, and then we can get feedback from others to make sure no one finds any other edge cases. Thanks a lot for putting this together.

@chilcote
chilcote merged commit 8e73988 into chilcote:master Oct 23, 2020
@gsmc-alx

Copy link
Copy Markdown
Author

Great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants