<gh_stars>0
const { existsSync } = require('fs');
const { join } = require('path');

const paths = [
  '/usr/share/discord-canary',
  '/opt/discord-canary'
];

exports.getAppDir = async () => {
  const discordPath = paths
    .find(path => existsSync(path));

  return join(
    discordPath,
    'resources',
    'app',
  );
};
