Browse Source

Fix: save plugins to UserData path for fit portable mode

Cyril Taylor 6 years ago
parent
commit
d89abde860
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/src/plugins.ts

+ 1 - 2
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',
 )