From 75b5ca8b4e44b28dde87337c99d4f46845b60d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 23 Oct 2024 14:46:06 -0400 Subject: [PATCH] idk! --- packages/obsidian-testing-framework/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/obsidian-testing-framework/src/index.ts b/packages/obsidian-testing-framework/src/index.ts index 6b6ea01..610128d 100644 --- a/packages/obsidian-testing-framework/src/index.ts +++ b/packages/obsidian-testing-framework/src/index.ts @@ -5,6 +5,7 @@ import path from "path"; import { ObsidianTestFixtures } from "./fixtures.js"; import { existsSync } from "fs"; import { getApp, waitForIndexingComplete } from "./util.js"; +import {execSync} from "child_process"; export interface ObsidianTestingConfig { vault?: string; @@ -24,7 +25,10 @@ export function getExe(): string { } const possibleDirs = ["/opt/Obsidian", "/usr/lib/Obsidian", "/opt/obsidian", "/usr/lib/obsidian", "/var/lib/flatpak/app/md.obsidian.Obsidian/current/active/files", "/snap/obsidian/current"]; for(let i = 0; i < possibleDirs.length; i++) { - if(existsSync(possibleDirs[i])) return path.join(possibleDirs[i], "resources", "app.asar"); + if(existsSync(possibleDirs[i])) { + console.log(execSync(`ls -l ${possibleDirs[i]}`).toString()); + return path.join(possibleDirs[i], "resources", "app.asar"); + } } return "" }