gtk: Do not access clipboard in renderer process.
This commit is contained in:
parent
839f875045
commit
3d518c2105
1 changed files with 6 additions and 1 deletions
|
@ -1 +1,6 @@
|
||||||
module.exports = process.atomBinding 'clipboard'
|
module.exports =
|
||||||
|
if process.platform is 'linux'
|
||||||
|
# On Linux we could not access clipboard in renderer process.
|
||||||
|
require('remote').process.atomBinding 'clipboard'
|
||||||
|
else
|
||||||
|
process.atomBinding 'clipboard'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue