Modern linux detection
authorArtem Pahomov <gorblnu4@gmail.com>
Tue, 25 Sep 2018 13:42:48 +0000 (16:42 +0300)
committerGitHub <noreply@github.com>
Tue, 25 Sep 2018 13:42:48 +0000 (16:42 +0300)
Linux core > 3.3 would be detected as `linux` in sys.platform

ffpass/__init__.py

index 26a312a6885b22a96d6388e9ba929d54a73bdf8d..94174771c90dd0b87628f2dde7758bbc47ef9569 100755 (executable)
@@ -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()