-
Notifications
You must be signed in to change notification settings - Fork 708
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
[NEW] Default servers improvements #490
Conversation
Seems like the |
I'll hang on to this until we find a solution that suits the comments on PR #312, based on installation time server configuration. |
I'm happy with the current state of this PR. I tested in several use cases with both Mac and Windows versions, I need to do some testing for linux distros, but it should be working as intended afaik. |
@@ -65,10 +65,13 @@ class Servers extends EventEmitter { | |||
|
|||
// Load server info from server config file | |||
if (Object.keys(hosts).length === 0) { | |||
const serverFileName = 'servers.json'; | |||
const userDataDir = jetpack.cwd(remote.app.getPath('userData')); | |||
const pathToServerJson = jetpack.path( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we check the user APPDATA folder first, then the system installation folder (for /allusers) and then the packaged file (if we do a branded package).
+1 THANKS! |
@RocketChat/core
Closes #455
Based on Pull Request #471 from @localguru (Thank you so much for this)
Synced with develop to fix the CI build and did a small refactor on the code.