Add sane default paths for Linux

This commit is contained in:
noodlebox 2017-01-26 00:24:52 -06:00
parent 3431d30ac2
commit b6bdaedb6d
1 changed files with 3 additions and 2 deletions

View File

@ -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]();
}