2019-02-04 08:09:18 -08:00
|
|
|
// @flow
|
2019-02-04 20:41:45 -08:00
|
|
|
|
2019-02-04 08:09:18 -08:00
|
|
|
import path from 'path';
|
|
|
|
import os from 'os';
|
|
|
|
|
|
|
|
import { app } from '../electron'; // eslint-disable-line
|
|
|
|
|
|
|
|
export const locateZcashConf = () => {
|
|
|
|
if (os.platform() === 'darwin') {
|
|
|
|
return path.join(app.getPath('appData'), 'Zcash', 'zcash.conf');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (os.platform() === 'linux') {
|
|
|
|
return path.join(app.getPath('home'), '.zcash', 'zcash.conf');
|
|
|
|
}
|
|
|
|
|
|
|
|
return path.join(app.getPath('appData'), 'Zcash', 'zcash.conf');
|
|
|
|
};
|