summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-10 18:30:56 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-10 18:30:56 +0100
commit9e1d14b399ff8d93505db69de4bfca70047037ce (patch)
treeb0ab57c4407d750d09ba148d30790cbae0536fa3
parent8826da1f23ca03117757b11162e3fbaf87cab30c (diff)
Use ~/screenshots on linux
-rwxr-xr-xclient.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client.js b/client.js
index 29bc4fe..95a787b 100755
--- a/client.js
+++ b/client.js
@@ -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=[];