From 14bdea8b3492ccb586d2002b2ca3b1e1e76304ec Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 10 Oct 2017 18:47:49 +0200 Subject: [PATCH] Add menu item to show app data folder --- app/main/window-utils.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/main/window-utils.js b/app/main/window-utils.js index 4a4cac6585..acd506072a 100644 --- a/app/main/window-utils.js +++ b/app/main/window-utils.js @@ -258,6 +258,14 @@ export function createWindow () { trackEvent('App Menu', 'Shortcuts'); } }, + { + label: 'Show App Data Folder', + click: (menuItem, window, e) => { + const directory = app.getPath('userData'); + shell.showItemInFolder(directory); + trackEvent('App Menu', 'Open App Data'); + } + }, { label: 'Insomnia Help', accelerator: 'CmdOrCtrl+/',