Git Product home page Git Product logo

Comments (3)

saadtazi avatar saadtazi commented on August 23, 2024

Hi @Standard8 ,

I know nothing about thunderbird development, so it's hard for me to answer.

My first impression would be to keep them separate: my main argument would be: single responsibility principle.

But I would be open to add some thunderbird features to this repo if you can provide more information about the type of features you would like to add to this repo. Maybe if you can tell me about thunderbird profile creation: are the steps similar to the firefox profile creation? Or maybe they are the same?

Thank you!

from firefox-profile-js.

Standard8 avatar Standard8 commented on August 23, 2024

Thunderbird uses Gecko (the backend of Firefox) - and hence has pretty much the same profile mechanism. The main differences happen to be slightly different locations for when there profiles are stored on the user's disk.

Some of the default prefs that we might want to set are also likely to be different.

For what I'm doing, I mainly need the profile_finder.js - though obviously set up for Thunderbird.

The simple diff there is something like:

diff --git a/lib/profile_finder.js b/lib/profile_finder.js
index 1a9e838..b879832 100644
--- a/lib/profile_finder.js
+++ b/lib/profile_finder.js
@@ -12,13 +12,13 @@ function locateUserDirectory(platform) {
   var userDir;
   switch (platform || os.platform()) {
     case 'darwin':
-      userDir = path.join(process.env.HOME, '/Library/Application Support/Firefox');
+      userDir = path.join(process.env.HOME, '/Library/Thunderbird');
       break;
     case 'linux':
-      userDir = path.join(process.env.HOME, '/.mozilla/firefox');
+      userDir = path.join(process.env.HOME, '/.mozilla/thunderbird');
       break;
     case 'win32':
-      userDir = path.join(process.env.APPDATA, '/Mozilla/Firefox');
+      userDir = path.join(process.env.APPDATA, '/Mozilla/Thunderbird');
       break;
   }
   return userDir;

(I've not confirmed the Linux/Windows paths are correct yet).

from firefox-profile-js.

saadtazi avatar saadtazi commented on August 23, 2024

I see. Feel free to open a PR!

I am curious: are you also interstered in getting a base64 encoded profile? Is there a way to run selenium with thunderbird?

.

from firefox-profile-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.