diff --git a/README.md b/README.md index 191e608..a9daf8a 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ Launch the application and access the Settings menu to configure: - **Window Tab** - Configure window dimensions - **Profiles Tab** - Save/load/export-import configuration profiles -Profiles are saved in `~/.webdrop-bridge/profiles/` +Profiles are saved in `~/.webdrop_bridge/profiles/` ### 2. Environment Variables Create a `.env` file in the project root. Available settings: diff --git a/src/webdrop_bridge/core/config_manager.py b/src/webdrop_bridge/core/config_manager.py index aeedf81..52798ee 100644 --- a/src/webdrop_bridge/core/config_manager.py +++ b/src/webdrop_bridge/core/config_manager.py @@ -101,10 +101,10 @@ class ConfigValidator: class ConfigProfile: """Manages named configuration profiles. - Profiles are stored in ~/.webdrop-bridge/profiles/ directory as JSON files. + Profiles are stored in ~/.webdrop_bridge/profiles/ directory as JSON files. """ - PROFILES_DIR = Path.home() / ".webdrop-bridge" / "profiles" + PROFILES_DIR = Path.home() / ".webdrop_bridge" / "profiles" def __init__(self) -> None: """Initialize profile manager.""" diff --git a/src/webdrop_bridge/ui/main_window.py b/src/webdrop_bridge/ui/main_window.py index b6d3b64..ce751fb 100644 --- a/src/webdrop_bridge/ui/main_window.py +++ b/src/webdrop_bridge/ui/main_window.py @@ -1410,7 +1410,7 @@ class MainWindow(QMainWindow): try: # Create update manager - cache_dir = Path.home() / ".webdrop-bridge" + cache_dir = Path.home() / ".webdrop_bridge" manager = UpdateManager(current_version=self.config.app_version, config_dir=cache_dir) # Run async check in background @@ -1630,7 +1630,7 @@ class MainWindow(QMainWindow): # Create update manager manager = UpdateManager( - current_version=self.config.app_version, config_dir=Path.home() / ".webdrop-bridge" + current_version=self.config.app_version, config_dir=Path.home() / ".webdrop_bridge" ) # Create and start background thread @@ -1769,7 +1769,7 @@ class MainWindow(QMainWindow): from webdrop_bridge.core.updater import UpdateManager manager = UpdateManager( - current_version=self.config.app_version, config_dir=Path.home() / ".webdrop-bridge" + current_version=self.config.app_version, config_dir=Path.home() / ".webdrop_bridge" ) if manager.install_update(installer_path): diff --git a/src/webdrop_bridge/ui/restricted_web_view.py b/src/webdrop_bridge/ui/restricted_web_view.py index a8359a4..5969819 100644 --- a/src/webdrop_bridge/ui/restricted_web_view.py +++ b/src/webdrop_bridge/ui/restricted_web_view.py @@ -150,13 +150,13 @@ class RestrictedWebEngineView(QWebEngineView): ) # Create profile directory path - profile_path = Path(app_data_dir) / "WebEngineProfile" + profile_path = Path(app_data_dir) / "webdrop_bridge" profile_path.mkdir(parents=True, exist_ok=True) # Create persistent profile with custom storage location - # Using "WebDropBridge" as the profile name + # Using "webdrop_bridge" as the profile name # Note: No parent specified so we control the lifecycle - profile = QWebEngineProfile("WebDropBridge") + profile = QWebEngineProfile("webdrop_bridge") profile.setPersistentStoragePath(str(profile_path)) # Configure persistent cookies (critical for authentication)