-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems setting wallpaper from cron or as sudo #57
Comments
What OS, version, and Node.js version? |
Linux mint 18 (cinnamon and sonya i think), node 11.10.1. Wallpaper installed globally, NODE_PATH pointing to node_modules where it is installed. |
I think I got it. Cron has limited env and in order to set wallpaper some env variables have to be exported. I found this https://askubuntu.com/a/198508 post and adapted to my case. It worked. |
Would you be willing to submit a PR to the readme with a tip about the above? I'm thinking a new |
Sure, how about I put my solution for daily wallpaper changer in examples folder ? |
When invoking simple script that should change wallpaper with sudo ie:
sudo /abs/path/script.js
or from cron* * * * * /abs/path/script.js
wallpaper stays the same. When called manually and without sudo/cron it works as intended.Any ideas what might be wrong?
The text was updated successfully, but these errors were encountered: