From 56ad03dc874392acac1d859bc58a282d35f35b50 Mon Sep 17 00:00:00 2001 From: Artem Pahomov Date: Tue, 25 Sep 2018 16:42:48 +0300 Subject: [PATCH] Modern linux detection Linux core > 3.3 would be detected as `linux` in sys.platform --- ffpass/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffpass/__init__.py b/ffpass/__init__.py index 26a312a..9417477 100755 --- a/ffpass/__init__.py +++ b/ffpass/__init__.py @@ -196,7 +196,8 @@ def addNewLogins(key, jsonLogins, logins): def guessDir(): dirs = { 'darwin': '~/Library/Application Support/Firefox', - 'linux2': '~/.mozilla/firefox' + 'linux2': '~/.mozilla/firefox', + 'linux': '~/.mozilla/firefox' } if sys.platform in dirs: path = Path(dirs[sys.platform]).expanduser() -- 2.52.0