mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
create dir if necessary (for testing)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
1c8aa2b4d2
commit
c8faded066
@ -1,7 +1,7 @@
|
||||
import { AppConstructorOptions, Application } from "spectron";
|
||||
import * as util from "util";
|
||||
import { exec, spawnSync } from "child_process";
|
||||
import fse, { writeFile } from "fs-extra";
|
||||
import fse, { mkdirp, writeFile } from "fs-extra";
|
||||
import path from "path";
|
||||
import os from "os";
|
||||
import { delay } from "../../src/common/utils";
|
||||
@ -85,6 +85,7 @@ export async function appStart() {
|
||||
"Categories=Network;"
|
||||
].join("\n");
|
||||
|
||||
await mkdirp(path.join(os.homedir(), ".local/share/applications/"));
|
||||
await writeFile(path.join(os.homedir(), ".local/share/applications/lens-testing.desktop"), testingDesktop);
|
||||
|
||||
const { status } = spawnSync("xdg-settings set default-url-scheme-handler lens lens-testing.desktop", { shell: true });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user