mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
Desktop: Add support for multiple instances (#11963)
This commit is contained in:
1 parent
7b2b3a4f80
commit
cb5ffd968d
32 files changed
+757
-60
No files matched your search
@@ -13,6 +13,7 @@ export interface MatchedStartFlags {
|
||||
logLevel?: LogLevel;
|
||||
allowOverridingDnsResultOrder?: boolean;
|
||||
devPlugins?: string[];
|
||||
altInstanceId?: string;
|
||||
}
|
||||
|
||||
// Handles the initial flags passed to main script and
|
||||
@@ -118,6 +119,12 @@ const processStartFlags = async (argv: string[], setDefaults = true) => {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (arg === '--alt-instance-id') {
|
||||
matched.altInstanceId = nextArg;
|
||||
argv.splice(0, 2);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (arg.indexOf('--remote-debugging-port=') === 0) {
|
||||
// Electron-specific flag used for debugging - ignore it. Electron expects this flag in '--x=y' form, a single string.
|
||||
argv.splice(0, 1);
|
||||
|
||||
Reference in new issue
Block a user