Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Bug 1236590 - create a loop-dev profile when no existing profile is specified and found #59

Closed
wants to merge 1 commit into from

Conversation

mikedeboer
Copy link
Contributor

Create a new 'loop-dev' browser profile when none can be found or isn't specified. Also make sure that the right prefs have been set to aid in Hello developement

function createEmptyProfile(profile) {
return When.promise(function(resolve, reject) {
var profileDir = randomString() + "." + profile;
var finder = new FxProfileFinder();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make use of the -CreateProfile command line argument instead of reimplementing some of the profile creation logic? Something like.. require("child_process").spawn('/Applications/Firefox.app/Contents/MacOS/firefox-bin', ["-CreateProfile", "loop-dev"])

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I didn't know about that one + didn't know that it shut down the process right after it created the profile. nice!

@mikedeboer
Copy link
Contributor Author

@Mardak I'm now using -CreateProfile, but it requires an update to the fx-runner module mozilla/node-fx-runner#5

…e found or isn't specified. Also make sure that the right prefs have been set to aid in Hello developement. r=Mardak
return value;
}

function takePrefsSample(profilePath) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by Sample? This looks to read in the whole prefs file as opposed to some of it. There's various things that make this function somewhat hard to read, and we might not actually need all the complexity anyway. See comment for setUserPrefs.

@Mardak
Copy link
Member

Mardak commented Jan 13, 2016

Also would be good to update README.md at the top currently with: One time only: This will use a new profile created in a ./loop-dev/

@Standard8
Copy link
Member

Also would be good to update README.md at the top currently with: One time only: This will use a new profile created in a ./loop-dev/

Its docs/Developing.md now. Please update that as well. I think it'd be nice to explain how to create a new profile & how to continue using an existing one (if it hasn't been used for Loop before).

Also, if loop-dev is going to be the default, please can we add that to .gitignore so it doesn't get accidentally committed.

Thanks.

@Standard8
Copy link
Member

Support for Hello/Loop has been discontinued.

https://support.mozilla.org/kb/hello-status

Hence closing the old bugs. Thank you for your support.

@Standard8 Standard8 closed this Oct 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants