-
Notifications
You must be signed in to change notification settings - Fork 21
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
Move laargs.txt
to more suitable location.
#83
Conversation
Additionally, we should consider implementing migration of the file to the new path, so people who use the file currently can just update LA to have it working. If possible, we shouldn't introduce changing requiring manual changes. In my opinion it should work like this:
|
Ok, I'll implement a migration system. |
Testing... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It completely doesn't follow the logic we want (#83 (comment)).
- Your code can delete old file without moving it. We can't delete someone's config. Even if there is a new one and we don't use the old one, we can't delete it (if it contains some data). Maybe the user put something important there.
- Previous version of LA was always creating an empty file and we don't want to move it, we want to get rid of it. Now there is no check for that after your latest changes.
I'm going to just do a full rewrite tomorrow. |
Could I get a bit of clarification on this? |
The migration process should look like this:
Currently code in this PR does completely something else:
And in a situation when new file exists and the old doesn't your code throws an exception (that is handled by the try-catch block). And that situation persists, so it's not one-time issue. It will happen on every LA start. |
Right, thanks. I'll remake the migrator based on this. |
This moves the
laargs.txt
file from the root directory of the application. (Likely in a protected folder.) to a user based one. Allowing different users to activate different settings.Fixes #82.