Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit dc2f6fa

Browse files
committed
experimental path for linux
1 parent 2ed3ead commit dc2f6fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

controller/firefox.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import sys
23
from sys import platform
34

45

@@ -30,7 +31,9 @@ def get_path():
3031

3132
if platform == "linux" or platform == "linux2":
3233
# TODO implement for LINUX platform, just assign the root_path variable
33-
root_path = ''
34+
root_path = os.path.expanduser("~")
35+
root_path = os.path.join(root_path, ".mozilla",
36+
"firefox")
3437
possible_paths = __find_possible_paths__(root_path)
3538
return possible_paths
3639
elif platform == "darwin":
@@ -41,7 +44,7 @@ def get_path():
4144
possible_paths = __find_possible_paths__(root_path)
4245
return possible_paths
4346
elif platform == "win32":
44-
# TODO implement for LINUX platform, just assign the root_path variable
47+
# TODO implement for windows platform, just assign the root_path variable
4548
root_path = ''
4649
possible_paths = __find_possible_paths__(root_path)
4750
return possible_paths

0 commit comments

Comments
 (0)