diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-10 18:30:56 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-10 18:30:56 +0100 |
commit | 9e1d14b399ff8d93505db69de4bfca70047037ce (patch) | |
tree | b0ab57c4407d750d09ba148d30790cbae0536fa3 | |
parent | 8826da1f23ca03117757b11162e3fbaf87cab30c (diff) |
Use ~/screenshots on linux
-rwxr-xr-x | client.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -39,7 +39,12 @@ var userid="0",password="-"; var HOMEDIR=process.env.HOME||process.env.HOMEPATH||process.env.HOMEDIR||process.cwd(); -var WATCHDIR=HOMEDIR+"/Desktop"; +var WATCHDIR; +if(process.platform=="darwin"){ + WATCHDIR=HOMEDIR+"/Desktop"; +} else { + WATCHDIR=HOMEDIR+"/screenshots"; +} var ignored=[]; var currentState=[]; |