You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
import Logger, { LogLevel } from '@joplin/utils/Logger';
|
import Logger, { LogLevel } from '@joplin/utils/Logger';
|
||||||
import JoplinError from '../JoplinError';
|
import JoplinError from '../JoplinError';
|
||||||
import { _ } from '../locale';
|
import { _ } from '../locale';
|
||||||
@ -152,6 +150,13 @@ const processStartFlags = async (argv: string[], setDefaults = true) => {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (arg === '--disable-gpu') {
|
||||||
|
// Electron-specific flag - ignore it
|
||||||
|
// Allows users to disable GPU acceleration
|
||||||
|
argv.splice(0, 1);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (arg.length && arg[0] === '-') {
|
if (arg.length && arg[0] === '-') {
|
||||||
throw new JoplinError(_('Unknown flag: %s', arg), 'flagError');
|
throw new JoplinError(_('Unknown flag: %s', arg), 'flagError');
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user