Skip to content

Commit

Permalink
fix: copying logs on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed May 22, 2022
1 parent 3e85785 commit d0a2ec9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { verifyIso } from "./verifyIso";
const log = electronLog.scope("main/listeners");
const isDevelopment = process.env.NODE_ENV !== "production";
const isMac = process.platform === "darwin";
const isWindows = process.platform === "win32";

autoUpdater.logger = log;

Expand Down Expand Up @@ -96,8 +95,7 @@ export default function setupMainIpc() {
});

ipc_copyLogsToClipboard.main!.handle(async () => {
let logsFolder = isWindows ? path.resolve(app.getPath("userData"), "logs") : app.getPath("logs");
// why does macOS decide it needs to be difficult?
let logsFolder = isMac ? app.getPath("logs") : path.resolve(app.getPath("userData"), "logs");
if (isDevelopment) {
if (isMac) {
logsFolder = path.join(logsFolder, "..", "Slippi Launcher");
Expand Down

0 comments on commit d0a2ec9

Please sign in to comment.