mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-29 19:13:59 +02:00
Destkop: Create template directory on startup
This commit is contained in:
parent
66204401c9
commit
9dfe084a02
@ -466,14 +466,14 @@ class Application extends BaseApplication {
|
||||
async start(argv:string[]):Promise<any> {
|
||||
const electronIsDev = require('electron-is-dev');
|
||||
|
||||
await fs.mkdirp(Setting.value('templateDir'), 0o755);
|
||||
|
||||
// If running inside a package, the command line, instead of being "node.exe <path> <flags>" is "joplin.exe <flags>" so
|
||||
// insert an extra argument so that they can be processed in a consistent way everywhere.
|
||||
if (!electronIsDev) argv.splice(1, 0, '.');
|
||||
|
||||
argv = await super.start(argv);
|
||||
|
||||
await fs.mkdirp(Setting.value('templateDir'), 0o755);
|
||||
|
||||
await this.applySettingsSideEffects();
|
||||
|
||||
if (Setting.value('sync.upgradeState') === Setting.SYNC_UPGRADE_STATE_MUST_DO) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user