From d89abde8601ce1763bd4e9e15a40e7a750f2bf6f Mon Sep 17 00:00:00 2001 From: Cyril Taylor Date: Sun, 2 Feb 2020 16:45:06 +0800 Subject: [PATCH] Fix: save plugins to UserData path for fit portable mode --- app/src/plugins.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/plugins.ts b/app/src/plugins.ts index b17a9cac..74a3ee2e 100644 --- a/app/src/plugins.ts +++ b/app/src/plugins.ts @@ -21,8 +21,7 @@ if (process.env.TERMINUS_DEV) { const builtinPluginsPath = process.env.TERMINUS_DEV ? path.dirname(require('electron').remote.app.getAppPath()) : path.join((process as any).resourcesPath, 'builtin-plugins') const userPluginsPath = path.join( - require('electron').remote.app.getPath('appData'), - 'terminus', + require('electron').remote.app.getPath('userData'), 'plugins', )