You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-03 23:50:33 +02:00
Desktop: Allow flags for native wayland (#5804)
This commit is contained in:
committed by
GitHub
parent
62f4396ffe
commit
a5b1255f45
@ -258,6 +258,20 @@ export default class BaseApplication {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (arg.indexOf('--enable-features=') === 0) {
|
||||||
|
// Electron-specific flag - ignore it
|
||||||
|
// Allows users to run the app on native wayland
|
||||||
|
argv.splice(0, 1);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (arg.indexOf('--ozone-platform=') === 0) {
|
||||||
|
// Electron-specific flag - ignore it
|
||||||
|
// Allows users to run the app on native wayland
|
||||||
|
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