Archived
1
0

Use system data directory for plugins

This commit is contained in:
Asher 2020-10-08 16:18:00 -05:00
parent a44b4455f5
commit c86d7398ab
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -69,7 +69,7 @@ const _loadPlugins = async (pluginDir: string, httpServer: HttpServer, args: Arg
* `CS_PLUGIN` (also colon-separated). * `CS_PLUGIN` (also colon-separated).
*/ */
export const loadPlugins = async (httpServer: HttpServer, args: Args): Promise<void> => { export const loadPlugins = async (httpServer: HttpServer, args: Args): Promise<void> => {
const pluginPath = process.env.CS_PLUGIN_PATH || `${path.join(paths.data, "plugins")}:/etc/code-server/plugins` const pluginPath = process.env.CS_PLUGIN_PATH || `${path.join(paths.data, "plugins")}:/usr/share/code-server/plugins`
const plugin = process.env.CS_PLUGIN || "" const plugin = process.env.CS_PLUGIN || ""
await Promise.all([ await Promise.all([
// Built-in plugins. // Built-in plugins.