Skip to content

Commit

Permalink
Windows - mail apps that use thunderbird process
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Jun 6, 2024
1 parent 4bdf87c commit 781417b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
6 changes: 4 additions & 2 deletions Windows/lazagne/config/manage_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from lazagne.softwares.browsers.chromium_browsers import chromium_browsers
from lazagne.softwares.browsers.firefox_browsers import firefox_browsers

# mails
from lazagne.softwares.mails.thunderbird_mails import thunderbird_mails


def get_modules_names():
return [
Expand All @@ -27,7 +30,6 @@ def get_modules_names():
("lazagne.softwares.git.gitforwindows", "GitForWindows"),
# Mails
("lazagne.softwares.mails.outlook", "Outlook"),
("lazagne.softwares.mails.thunderbird", "Thunderbird"),
# Maven
("lazagne.softwares.maven.mavenrepositories", "MavenRepositories"),
# Memory
Expand Down Expand Up @@ -101,4 +103,4 @@ def get_categories():

def get_modules():
modules = [soft_import(package_name, module_name)() for package_name, module_name in get_modules_names()]
return modules + chromium_browsers + firefox_browsers
return modules + chromium_browsers + firefox_browsers + thunderbird_mails
4 changes: 2 additions & 2 deletions Windows/lazagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def long_to_bytes(n, blocksize=0):

class Mozilla(ModuleInfo):

def __init__(self, browser_name, path):
def __init__(self, browser_name, path, category='browsers'):
self.path = path
ModuleInfo.__init__(self, browser_name, category='browsers')
ModuleInfo.__init__(self, browser_name, category=category)

def get_firefox_profiles(self, directory):
"""
Expand Down
9 changes: 0 additions & 9 deletions Windows/lazagne/softwares/mails/thunderbird.py

This file was deleted.

13 changes: 13 additions & 0 deletions Windows/lazagne/softwares/mails/thunderbird_mails.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from lazagne.config.soft_import_module import soft_import

mozilla_module_location = "lazagne.softwares.browsers.mozilla", "Mozilla"
Mozilla = soft_import(*mozilla_module_location)

# Name, path
thunderbird_mails = [
(u'epyrus', u'{APPDATA}\\athenian200\\Epyrus'),
(u'interlink', u'{APPDATA}\\BinaryOutcast\\Interlink'),
(u'thunderbird', u'{APPDATA}\\Thunderbird'),
]

thunderbird_mails = [Mozilla(browser_name=name, path=path, category='mails') for name, path in thunderbird_mails]

0 comments on commit 781417b

Please sign in to comment.