Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost configuration after migration from 1.2.X to 1.3.0 #1

Closed
epoiseau opened this issue Aug 29, 2017 · 1 comment
Closed

Lost configuration after migration from 1.2.X to 1.3.0 #1

epoiseau opened this issue Aug 29, 2017 · 1 comment

Comments

@epoiseau
Copy link

Hi

thanks for the tool that I use every day. This is great and I like it. When I have update from 1.2.4 to 1.3.0 I have lost of the configuration to the endpoint I have (I have many of them - 18 )

Apparently the new version is using a differ. Is there an easy way to use or transfer the data from the old version to the new ?

@volendavidov
Copy link
Owner

In short: No, unfortunately there is no easy way. Perhaps a bit more convenient way to get (copy the strings) the configuration is with the command strings ~/Library/Preferences/com.volendavidov.NagBar.plist.

Explanation:
The old configuration was stored with NSKeyedArchiver while the new one is stored in a Realm database. I had difficulties using NSKeyedArchiver with Swift (the app was originally written in Objective-C), so I decided to switch to Realm database. Besides the easier way of manipulating data, it is also possible to view and modify the database with Realm Browser. Since there was no easy way to continue to use NSKeyedArchiver, I wasn't able to make a piece that would transfer the preferences from NSKeyedArchiver to Realm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants