mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-77 - Fixed user config path for mac
This commit is contained in:
parent
e146a95620
commit
d5ac806be4
@ -134,13 +134,13 @@ function setStartup(lStartup){
|
|||||||
// Method to overwrite user config on mac installer
|
// Method to overwrite user config on mac installer
|
||||||
function updateUserConfigMac() {
|
function updateUserConfigMac() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let userConfigPath = process.env.HOME + '/Library/Application Support/Symphony/';
|
let userConfigPath = dirs.userConfig() + '/';
|
||||||
let globalConfigPath = process.argv[2];
|
let globalConfigPath = process.argv[2];
|
||||||
let userName = process.env.USER;
|
let userName = process.env.USER;
|
||||||
|
|
||||||
childProcess.exec(`rsync -r "${globalConfigPath}" "${userConfigPath}" && chown -R "${userName}" "${userConfigPath}"`, (error, stdout) => {
|
childProcess.exec(`rsync -r "${globalConfigPath}" "${userConfigPath}" && chown -R "${userName}" "${userConfigPath}"`, (err) => {
|
||||||
if (error) {
|
if (err) {
|
||||||
reject(error);
|
reject(err);
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user