Fix initial terminal resize for nvim

This commit is contained in:
Mohamed Boudra
2026-04-24 15:57:13 +07:00
parent 83689ef0c5
commit 2b37276577
3 changed files with 135 additions and 17 deletions
+5 -1
View File
@@ -43,7 +43,11 @@ app.setName("Paseo");
// In dev mode, detect git worktrees and isolate each instance so multiple
// Electron windows can run side-by-side (separate userData = separate lock).
let devWorktreeName: string | null = null;
if (!app.isPackaged) {
const forcedUserDataDir = process.env.PASEO_ELECTRON_USER_DATA_DIR?.trim();
if (forcedUserDataDir) {
app.setPath("userData", forcedUserDataDir);
log.info("[dev-user-data] forced userData dir:", forcedUserDataDir);
} else if (!app.isPackaged) {
try {
const topLevel = execFileSync("git", ["rev-parse", "--show-toplevel"], {
encoding: "utf-8",