Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Win-specific: Use "%APPDATA%" instead of "Application Data" for home …
…folder
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9825750
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.
What about existing users who already have configuration in "Application Data/GoldenDict"? What would happen to them once they upgrade?
9825750
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.
In most cases (by default) it will be same folder. In Windows XP %APPDATA% leads to "Application Data" as is. In Vista/7 %APPDATA% leads to "AppData\Roaming", but "Application Data" points to same folder as junction point.
If user has change this value manually, he also know as to transfers settings to new folder because he has made it with other programs data.
9825750
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.
So if a user did change this value manually, and then used older GD version for a year or so, and then upgrades to a newer version - does he suddenly lose all his configuration? His previous GD version used the hardcoded path, which then changed when he upgraded. This is just wrong. Please add a step which checks for presence of 'Application Data/GoldenDict' and uses that path if it exists. This way the user could switch to newer version and then even downgrade to the older one.
9825750
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.
Done in commit 1d399aa