Skip to content

Commit

Permalink
Fix mozilla bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed May 6, 2015
1 parent 52f4f96 commit c76c305
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Windows/src/LaZagne/softwares/browsers/chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def run(self):
database_path = ''
if 'HOMEDRIVE' in os.environ and 'HOMEPATH' in os.environ:
# For Win7
path_Win7 = os.environ.get('HOMEDRIVE') + os.sep + os.environ.get('HOMEPATH') + '\Local Settings\Application Data\Google\Chrome\User Data\Default\Login Data'
path_Win7 = os.environ.get('HOMEDRIVE') + os.environ.get('HOMEPATH') + '\Local Settings\Application Data\Google\Chrome\User Data\Default\Login Data'

# For XP
path_XP = os.environ.get('HOMEDRIVE') + os.sep + os.environ.get('HOMEPATH') + '\AppData\Local\Google\Chrome\User Data\Default\Login Data'
path_XP = os.environ.get('HOMEDRIVE') + os.environ.get('HOMEPATH') + '\AppData\Local\Google\Chrome\User Data\Default\Login Data'

if os.path.exists(path_XP):
database_path = path_XP
Expand Down
15 changes: 11 additions & 4 deletions Windows/src/LaZagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ def found_masterpassword(self):

# main function
def run(self):
global database_find
database_find = False

self.manage_advanced_options()

software_name = constant.mozilla_software
Expand Down Expand Up @@ -385,13 +388,17 @@ def run(self):
masterPwd = self.is_masterpasswd_set()

# check if passwors are stored on the Json format
credentials = JsonDatabase(profile)
try:
credentials = JsonDatabase(profile)
except:
database_find = False
if not database_find:
# check if passwors are stored on the sqlite format
credentials = SqliteDatabase(profile)
try:
credentials = SqliteDatabase(profile)
except:
database_find = False

# if not database_find:
# print_debug('INFO', 'No credentials file found (logins.json or signons.sqlite) - or empty content')
if database_find:
print
if masterPwd:
Expand Down
1 change: 0 additions & 1 deletion Windows/src/LaZagne/softwares/chats/pidgin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import WConio
import xml.etree.cElementTree as ET
import os
from config.constant import *
Expand Down
Binary file modified Windows/standalone/laZagne.exe
Binary file not shown.

0 comments on commit c76c305

Please sign in to comment.