import { app } from "electron";

const isDevelopment = process.env.NODE_ENV !== "production";
import os from "os";
import path from "path";

let walletPath = "";

if (process.type !== "renderer") {
  if (os.platform() === "linux") {
    walletPath = path.join(
      app.getPath("home"),
      isDevelopment ? ".gulden_dev" : ".gulden"
    );
  } else {
    walletPath = app.getPath("userData");
    if (isDevelopment) walletPath = walletPath + "_dev";
  }
}

export default walletPath;

import { app } from "electron";

const isDevelopment = process.env.NODE_ENV !== "production";
import os from "os";
import path from "path";

let walletPath = "";

if (process.type !== "renderer") {
  if (os.platform() === "linux") {
    walletPath = path.join(
      app.getPath("home"),
      isDevelopment ? ".gulden_lite_dev" : ".gulden_lite"
    );
  } else {
    walletPath = app.getPath("userData");
    if (isDevelopment) walletPath = walletPath + "_dev";
  }
}

export default walletPath;

Change wallet path for lite wallet
ELECTRON: Change wallet path for lite wallet
