You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Desktop: Allow flags for native wayland (#5804)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							62f4396ffe
						
					
				
				
					commit
					a5b1255f45
				
			| @@ -258,6 +258,20 @@ export default class BaseApplication { | ||||
| 				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] == '-') { | ||||
| 				throw new JoplinError(_('Unknown flag: %s', arg), 'flagError'); | ||||
| 			} else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user