From c8d6a703c7458760de4d5978aa36e64ad685fd74 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 Aug 2018 09:36:43 +0530 Subject: [PATCH] Windows: The default calibre library location is now not in My Documents but instead in the user home folder This is because Microsoft now syncs My Documents to OneDrive and calibre does not work well with multiple programs accessing its files simultaneously on windows thanks to the mandatory file locking. Fixes #1787488 [{Enhancement] Welcome Wizard](https://bugs.launchpad.net/calibre/+bug/1787488) --- src/calibre/gui2/wizard/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/calibre/gui2/wizard/__init__.py b/src/calibre/gui2/wizard/__init__.py index f806dd05a8..e8ba68abc2 100644 --- a/src/calibre/gui2/wizard/__init__.py +++ b/src/calibre/gui2/wizard/__init__.py @@ -763,13 +763,6 @@ class LibraryPage(QWizardPage, LibraryUI): base = os.path.expanduser(u'~') except ValueError: base = QDir.homePath().replace('/', os.sep) - if iswindows: - try: - x = winutil.special_folder_path(winutil.CSIDL_PERSONAL) - except ValueError: - x = QDir.homePath().replace('/', os.sep) - if x and os.access(x, os.W_OK): - base = x lp = os.path.join(base, fname) self.default_library_name = lp