From 91f5e72f029cc59f65b9de7dbcb6af15c27982d7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 13 Sep 2017 12:39:49 +0200 Subject: [PATCH] Remove download dir from path info This always returns the default Qt path (e.g. ~/Downloads) and also creates it each time. See #2418 --- qutebrowser/utils/version.py | 1 - tests/unit/utils/test_version.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py index 91f794c59..326e787c7 100644 --- a/qutebrowser/utils/version.py +++ b/qutebrowser/utils/version.py @@ -224,7 +224,6 @@ def _path_info(): 'data': standarddir.data(), 'system_data': standarddir.system_data(), 'cache': standarddir.cache(), - 'download': standarddir.download(), 'runtime': standarddir.runtime(), } diff --git a/tests/unit/utils/test_version.py b/tests/unit/utils/test_version.py index 46a1ba232..a6b72ebd7 100644 --- a/tests/unit/utils/test_version.py +++ b/tests/unit/utils/test_version.py @@ -463,7 +463,6 @@ def test_path_info(monkeypatch): 'data': lambda: 'DATA PATH', 'system_data': lambda: 'SYSTEM DATA PATH', 'cache': lambda: 'CACHE PATH', - 'download': lambda: 'DOWNLOAD PATH', 'runtime': lambda: 'RUNTIME PATH', } @@ -476,7 +475,6 @@ def test_path_info(monkeypatch): assert pathinfo['data'] == 'DATA PATH' assert pathinfo['system_data'] == 'SYSTEM DATA PATH' assert pathinfo['cache'] == 'CACHE PATH' - assert pathinfo['download'] == 'DOWNLOAD PATH' assert pathinfo['runtime'] == 'RUNTIME PATH'