💄 Fix clipboard on Linux.
This commit is contained in:
		
					parent
					
						
							
								950704c7e8
							
						
					
				
			
			
				commit
				
					
						c575d40d63
					
				
			
		
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -23,9 +23,9 @@ struct Converter<ui::Clipboard::Buffer> { | |||
|       return false; | ||||
| 
 | ||||
|     if (type == "selection") | ||||
|       *out = ui::Clipboard::BUFFER_STANDARD; | ||||
|     else | ||||
|       *out = ui::Clipboard::BUFFER_SELECTION; | ||||
|     else | ||||
|       *out = ui::Clipboard::BUFFER_STANDARD; | ||||
|     return true; | ||||
|   } | ||||
| }; | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| if process.platform is 'linux' and process.type is 'renderer' | ||||
|   # On Linux we could not access clipboard in renderer process. | ||||
|   module.exports = require('remote').process.atomBinding 'clipboard' | ||||
|   module.exports = require('remote').require 'clipboard' | ||||
| else | ||||
|   binding = process.atomBinding 'clipboard' | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao