diff options
author | Peisen Wang <wangps@mail.ustc.edu.cn> | 2024-06-23 07:25:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 23:25:16 +0000 |
commit | a8520244b8642880e4d35925e9e49eff94d548de (patch) | |
tree | 1c6c6f2e39ad055b3edf5d8bfab39fbe68e46184 /test/test_cookies.py | |
parent | 8ca1d57ed08d00efa117820a5a82f763b20e2d1d (diff) |
[cookies] Fix `--cookies-from-browser` DE detection on Linux (#10237)
Align with chromium source by parsing every part of `XDG_CURRENT_DESKTOP`
Authored by: peisenwang
Diffstat (limited to 'test/test_cookies.py')
-rw-r--r-- | test/test_cookies.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_cookies.py b/test/test_cookies.py index a682fee1d..e1271f67e 100644 --- a/test/test_cookies.py +++ b/test/test_cookies.py @@ -67,6 +67,7 @@ class TestCookies(unittest.TestCase): ({'XDG_CURRENT_DESKTOP': 'GNOME'}, _LinuxDesktopEnvironment.GNOME), ({'XDG_CURRENT_DESKTOP': 'GNOME:GNOME-Classic'}, _LinuxDesktopEnvironment.GNOME), ({'XDG_CURRENT_DESKTOP': 'GNOME : GNOME-Classic'}, _LinuxDesktopEnvironment.GNOME), + ({'XDG_CURRENT_DESKTOP': 'ubuntu:GNOME'}, _LinuxDesktopEnvironment.GNOME), ({'XDG_CURRENT_DESKTOP': 'Unity', 'DESKTOP_SESSION': 'gnome-fallback'}, _LinuxDesktopEnvironment.GNOME), ({'XDG_CURRENT_DESKTOP': 'KDE', 'KDE_SESSION_VERSION': '5'}, _LinuxDesktopEnvironment.KDE5), |