-
Notifications
You must be signed in to change notification settings - Fork 95
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
Disable the screensaver only when playing video. #641
base: master
Are you sure you want to change the base?
Conversation
This would be a heaven send! Thank you for reading my mind. edit: I tested out So many thanks for all the great work you put into SMPlayer, it is an endless joy to use! 🙏🏼 |
Man, did I really send this in half a year ago? @smplayer-dev ping! |
I can't believe I have been sleeping on it all this time. I have been promising myself to take a look at this exact issue for the longest time! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Plasma 5, it works fine.
Is there any reason not to merge this?
Fixes issue #582 |
Hi, when will this get merged? |
If what's holding back this merge request is the possibility of a Windows regression, I could check it there with a test build. |
Would be great to see this get merged. |
i also need this. it's a major security issue that when i forget a paused video in the background, then my screen remains unlocked all the way until i return to my computer (which may end up being days). |
@zorbathut thanks a lot for this PR! could you please rebase it? |
I'm afraid I no longer actually need this change. I've done a simple rebase and put it up at zorbathut@7e2dd1e but this is entirely untested and I don't feel good about pushing it into this branch. I encourage someone to grab it and test it and get this upstreamed, though! Good luck! |
I think this is already in master. a978721 |
You'll note I also disabled the aboutToStartPlaying() signal. I don't remember why, but I wouldn't have done that without a reason :) Recommend someone test it out before assuming it now works. Maybe it works! Maybe it doesn't. |
It is entirely possible that this functionality isn't desired; it looks like it was implemented at some point, then disabled in 9713cfd. I do not know if this will break things in Windows again - from looking at it code, it shouldn't, but maybe there's a bug? This is also arguably a breaking change because there is no longer a "disable screensaver even when not playing video" option.
I'd really like an option to accomplish this, however, and I'm happy to keep working on it as requested. If you'd like further testing, let me know! And if you'd prefer a different design, possibly a "Don't Disable Screensaver/Disable Screensaver When Playing/Disable Screensaver Always" dropdown, tell me the design that you'd like and I'll put that together :)