Merge pull request #32 from uki00a/master
Use os.tmpdir instead of /tmp/
This commit is contained in:
commit
d2ab4efbf6
|
@ -10,7 +10,8 @@
|
|||
|
||||
var path = require('path')
|
||||
, fs = require('fs')
|
||||
, cp = require('child_process');
|
||||
, cp = require('child_process')
|
||||
, os = require('os');
|
||||
|
||||
var colors = require('../colors')
|
||||
, program = require('../program')
|
||||
|
@ -1832,7 +1833,7 @@ Screen.prototype.readEditor = function(options, callback) {
|
|||
, editor = options.editor || process.env.EDITOR || 'vi'
|
||||
, name = options.name || process.title || 'blessed'
|
||||
, rnd = Math.random().toString(36).split('.').pop()
|
||||
, file = '/tmp/' + name + '.' + rnd
|
||||
, file = path.join(os.tmpdir(), name + '.' + rnd)
|
||||
, args = [file]
|
||||
, opt;
|
||||
|
||||
|
|
Loading…
Reference in New Issue