Skip to content
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

Remove need for python-shell #10

Closed
HorstBaerbel opened this issue Jan 25, 2020 · 0 comments
Closed

Remove need for python-shell #10

HorstBaerbel opened this issue Jan 25, 2020 · 0 comments

Comments

@HorstBaerbel
Copy link

HorstBaerbel commented Jan 25, 2020

It is only needed in turnOffXScreensaver() to call "xscreensaver-command -deactivate", but I see no reason to not use "exec('xscreensaver-command -deactivate');" for that. It is used anyway.

turnOffXScreensaver: function() {
PythonShell.runString('import os;os.system("xscreensaver-command -deactivate");', null, function (error) {

nischi added a commit that referenced this issue Jan 27, 2020
Fix #9 and #10 and add customCmdOn/Off for more flexibility
@nischi nischi closed this as completed Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants