sidorares / node-x11

X11 node.js network protocol client
MIT License
518 stars 72 forks source link

Remove unnecessary parentheses from require('os').homedir() #194

Closed matoruru closed 4 years ago

matoruru commented 4 years ago

I got this error because of this parentheses:

/PATH/TO/REPO/node-x11/lib/auth.js:57
  var filename = process.env.XAUTHORITY || path.join(homedir(), '.Xauthority');
                                                     ^

TypeError: homedir is not a function
matoruru commented 4 years ago

And this bug was injected by the PR #192.