diff --git a/src/utils/logging.ts b/src/utils/logging.ts index 8c3511b52..e50d533ff 100644 --- a/src/utils/logging.ts +++ b/src/utils/logging.ts @@ -1,8 +1,5 @@ import { ipcRenderer } from 'electron'; -import { app } from 'electron/main'; export function logError(error: Error, message: string, info?: string): void { ipcRenderer.invoke('log-error', error, message, info); } - -export const getLogFolderPath = () => `${app.getPath('logs')}/${app.name}`; diff --git a/src/utils/menu.ts b/src/utils/menu.ts index a4dfc55d1..a78f46639 100644 --- a/src/utils/menu.ts +++ b/src/utils/menu.ts @@ -13,7 +13,6 @@ import { isUpdateAvailable, setIsAppQuitting } from '../main'; import autoLauncher from '../services/autoLauncher'; import { isPlatformMac } from './main'; import { showUpdateDialog } from '../services/appUpdater'; -import { getLogFolderPath } from './logging'; export function buildContextMenu( mainWindow: BrowserWindow, @@ -244,7 +243,7 @@ export async function buildMenuBar(): Promise { { label: 'Report Bug', click: () => { - shell.showItemInFolder(getLogFolderPath()); + shell.openPath(app.getPath('logs')); }, }, ],