summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=[];