fix: standardize profile directory naming from ".webdrop-bridge" and "WebDropBridge" to ".webdrop_bridge"
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions
This commit is contained in:
parent
87884935c9
commit
ba0594c260
4 changed files with 9 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue