From b6bdaedb6d5ea509e283e2245ff7835aafe4e852 Mon Sep 17 00:00:00 2001 From: noodlebox Date: Thu, 26 Jan 2017 00:24:52 -0600 Subject: [PATCH] Add sane default paths for Linux --- Installers/Electron/src/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Installers/Electron/src/utils.js b/Installers/Electron/src/utils.js index 1418112..b05d2bb 100644 --- a/Installers/Electron/src/utils.js +++ b/Installers/Electron/src/utils.js @@ -74,7 +74,7 @@ class Utils { return path; }, "darwin": () => "/Applications/Discord.app/Contents", - "linux": () => "" // TODO + "linux": () => "/usr/share/discord-canary" }[platform](); } @@ -88,7 +88,8 @@ class Utils { return `${process.env.HOME}/.local/share/BetterDiscord`; }, "linux": () => { - return ""; // TODO + // FIXME: for a non-root user, a path like OSX's makes more sense + return "/usr/local/share/BetterDiscord"; } }[platform](); }