2015-06-09 10:25:24 +00:00
|
|
|
if process.platform is 'linux' and process.type is 'renderer'
|
2015-11-12 10:28:04 +00:00
|
|
|
{remote} = require 'electron'
|
2015-06-09 10:25:24 +00:00
|
|
|
# On Linux we could not access clipboard in renderer process.
|
2015-11-12 10:28:04 +00:00
|
|
|
module.exports = remote.require 'clipboard'
|
2015-06-09 10:25:24 +00:00
|
|
|
else
|
2015-06-10 04:12:37 +00:00
|
|
|
module.exports = process.atomBinding 'clipboard'
|