projects
/
gamesguru
/
ffpass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f92035
)
Modern linux detection
author
Artem Pahomov
<gorblnu4@gmail.com>
Tue, 25 Sep 2018 13:42:48 +0000
(16:42 +0300)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/ffpass/__init__.py
b/ffpass/__init__.py
index 26a312a6885b22a96d6388e9ba929d54a73bdf8d..94174771c90dd0b87628f2dde7758bbc47ef9569 100755
(executable)
--- 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()