From: Artem Pahomov Date: Tue, 25 Sep 2018 13:42:48 +0000 (+0300) Subject: Modern linux detection X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=56ad03dc874392acac1d859bc58a282d35f35b50;p=gamesguru%2Fffpass.git Modern linux detection Linux core > 3.3 would be detected as `linux` in sys.platform --- 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()