mirror of
https://github.com/Eugeny/tabby.git
synced 2024-09-11 12:55:32 +03:00
renamed env variable to TABBY_CONFIG_DIRECTORY
This commit is contained in:
parent
d1a837b11d
commit
bd31db9c56
2
.env
2
.env
@ -1 +1 @@
|
|||||||
# CONFIG_DIRECTORY="CONFIG_FILE_PATH"
|
# TABBY_CONFIG_DIRECTORY="PATH_TO_DIRECTORY"
|
@ -4,8 +4,8 @@ import * as yaml from 'js-yaml'
|
|||||||
import { writeFile } from 'atomically'
|
import { writeFile } from 'atomically'
|
||||||
|
|
||||||
|
|
||||||
export const configPath = path.join(process.env.CONFIG_DIRECTORY!, 'config.yaml')
|
export const configPath = path.join(process.env.TABBY_CONFIG_DIRECTORY!, 'config.yaml')
|
||||||
const legacyConfigPath = path.join(process.env.CONFIG_DIRECTORY!, '../terminus', 'config.yaml')
|
const legacyConfigPath = path.join(process.env.TABBY_CONFIG_DIRECTORY!, '../terminus', 'config.yaml')
|
||||||
|
|
||||||
|
|
||||||
export function migrateConfig (): void {
|
export function migrateConfig (): void {
|
||||||
|
@ -3,7 +3,7 @@ import { app, ipcMain, Menu, dialog } from 'electron'
|
|||||||
// set defaults of environment variables
|
// set defaults of environment variables
|
||||||
import 'dotenv/config'
|
import 'dotenv/config'
|
||||||
process.env.TABBY_PLUGINS ??= ''
|
process.env.TABBY_PLUGINS ??= ''
|
||||||
process.env.CONFIG_DIRECTORY ??= app.getPath('userData')
|
process.env.TABBY_CONFIG_DIRECTORY ??= app.getPath('userData')
|
||||||
|
|
||||||
|
|
||||||
import 'v8-compile-cache'
|
import 'v8-compile-cache'
|
||||||
|
Loading…
Reference in New Issue
Block a user