forked from LBRYCommunity/lbry-sdk
Fix old legacy Windows location
This commit is contained in:
parent
ebec2fe955
commit
6a1a91f8f1
2 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@ at anytime.
|
||||||
### Changed
|
### Changed
|
||||||
* Linux default downloads folder changed from `~/Downloads` to `XDG_DOWNLOAD_DIR`
|
* Linux default downloads folder changed from `~/Downloads` to `XDG_DOWNLOAD_DIR`
|
||||||
* Linux folders moved from the home directory to `~/.local/share/lbry`
|
* Linux folders moved from the home directory to `~/.local/share/lbry`
|
||||||
* Windows folders moved from `%APPDATA%/Roaming/lbry` to `%APPDATA%/Local/lbry`
|
* Windows folders moved from `%APPDATA%/Roaming` to `%APPDATA%/Local/lbry`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* Fixed some log messages throwing exceptions
|
* Fixed some log messages throwing exceptions
|
||||||
|
|
|
@ -56,10 +56,10 @@ elif 'nt' in sys.platform:
|
||||||
default_download_dir = get_path(FOLDERID.Downloads, UserHandle.current)
|
default_download_dir = get_path(FOLDERID.Downloads, UserHandle.current)
|
||||||
|
|
||||||
# This checks whether the folders are still in their old locations
|
# This checks whether the folders are still in their old locations
|
||||||
if os.path.isdir(user_data_dir('lbryum', 'lbry', roaming=True)) and \
|
if os.path.isdir(user_data_dir('lbryum', roaming=True)) and \
|
||||||
os.path.isdir(user_data_dir('lbrynet', 'lbry', roaming=True)):
|
os.path.isdir(user_data_dir('lbrynet', roaming=True)):
|
||||||
default_data_dir = user_data_dir('lbrynet', 'lbry', roaming=True)
|
default_data_dir = user_data_dir('lbrynet', roaming=True)
|
||||||
default_lbryum_dir = user_data_dir('lbryum', 'lbry', roaming=True)
|
default_lbryum_dir = user_data_dir('lbryum', roaming=True)
|
||||||
else:
|
else:
|
||||||
default_data_dir = user_data_dir('lbrynet', 'lbry')
|
default_data_dir = user_data_dir('lbrynet', 'lbry')
|
||||||
default_lbryum_dir = user_data_dir('lbryum', 'lbry')
|
default_lbryum_dir = user_data_dir('lbryum', 'lbry')
|
||||||
|
|
Loading…
Reference in a new issue