You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
15 lines
494 B
TypeScript
15 lines
494 B
TypeScript
import { dirname, resolve } from 'path';
|
|
|
|
const createStartupArgs = (profileDirectory: string) => {
|
|
// Input paths need to be absolute when running from VSCode
|
|
const baseDirectory = dirname(dirname(__dirname));
|
|
const mainPath = resolve(baseDirectory, 'main.js');
|
|
|
|
// We need to run with --env dev to disable the single instance check.
|
|
return [
|
|
mainPath, '--env', 'dev', '--no-welcome', '--running-tests', '--profile', resolve(profileDirectory),
|
|
];
|
|
};
|
|
|
|
export default createStartupArgs;
|