equinor/webviz-config

Windows 11: `Application Data` shortcut is removed

Closed this issue · 0 comments

Describe the bug
In _user_data_dir.py, the path created for win32 should be changed to AppData, since the Application Data shortcut is no longer supported by default under Windows 11. Hence, webviz execution is going to fail on Windows 11.

Suggested change:

def user_data_dir() -> Path:
    """Returns platform specific path to store user application data"""

    if sys.platform == "win32":
        return Path.home() / "AppData" / "webviz"

    if sys.platform == "darwin":
        return Path.home() / "Library" / "Application Support" / "webviz"

    return Path.home() / ".local" / "share" / "webviz"