From 9e1d14b399ff8d93505db69de4bfca70047037ce Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 10 Mar 2017 18:30:56 +0100 Subject: Use ~/screenshots on linux --- client.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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=[]; -- cgit v1.2.3-70-g09d2