Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Read configuration from file #3

Open
achim-k opened this issue Apr 22, 2016 · 9 comments
Open

[Feature] Read configuration from file #3

achim-k opened this issue Apr 22, 2016 · 9 comments
Assignees

Comments

@achim-k
Copy link
Contributor

achim-k commented Apr 22, 2016

Would be great if FlexBE could read the configuration (State folders, behavior folders, etc.) from a file. That would allow fast switching between different workspaces or fast initial setup.

@pschillinger pschillinger self-assigned this Apr 22, 2016
@pschillinger
Copy link
Owner

Agree, this makes sense. I will add it when I find time.

@achim-k
Copy link
Contributor Author

achim-k commented Apr 22, 2016

👍 Maybe I'll also have a look into it and create a PR. It's not a urgent thing though.

@pschillinger
Copy link
Owner

Sure, feel free to do so. :) If you do, let me know if you have any questions.

@pschillinger
Copy link
Owner

Can you try to export configuration on one PC and import it on another?

Chrome gives unique IDs to file entries. I'm not sure if they are unique wrt to the App ID or completely unique.

@achim-k
Copy link
Contributor Author

achim-k commented May 9, 2016

I tried it on another PC but it does not work. Even when having the workspace folder under the same path as on the other PC, the app throws the following exceptions:

Unchecked runtime.lastError while running fileSystem.restoreEntry: Unknown id
...
Error in response to fileSystem.restoreEntry: TypeError: Cannot read property 'getDirectory' of undefined
...

It seems that the file IDs are indeed completely unique, since I'm using the same app version on both PCs.

@achim-k
Copy link
Contributor Author

achim-k commented May 9, 2016

Just a thought: If the chrome extension environment is somewhat too limiting, maybe it's worth a try with electron (http://electron.atom.io/)

@pschillinger
Copy link
Owner

Thanks for testing! I guess this makes sense because otherwise, it would be possible to circumvent Chrome's security policy.

Electron looks interesting, will have a closer look when I find some time. However, a change like this would definitely be a long-term thing.

@spmaniato
Copy link

Philipp, for when you look into Electron apps: https://github.com/sindresorhus/awesome-electron 😁

@achim-k
Copy link
Contributor Author

achim-k commented May 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants