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

Disable the screensaver only when playing video. #641

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zorbathut
Copy link
Contributor

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 :)

@sazeygit
Copy link

sazeygit commented Jul 13, 2023

This would be a heaven send! Thank you for reading my mind.

edit: I tested out #641 and it seems to be working as expected.

So many thanks for all the great work you put into SMPlayer, it is an endless joy to use! 🙏🏼

@zorbathut
Copy link
Contributor Author

Man, did I really send this in half a year ago?

@smplayer-dev ping!

@sazeygit
Copy link

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!

Copy link
Contributor

@tbertels tbertels left a 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?

@tbertels
Copy link
Contributor

Fixes issue #582

@Adityashaw
Copy link

Hi, when will this get merged?

@tbertels
Copy link
Contributor

If what's holding back this merge request is the possibility of a Windows regression, I could check it there with a test build.

@IceBlizz6
Copy link

Would be great to see this get merged.
I was about to make an issue for this.

@attila-lendvai
Copy link

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).

@attila-lendvai
Copy link

@zorbathut thanks a lot for this PR!

could you please rebase it?

@zorbathut
Copy link
Contributor Author

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!

@smplayer-dev
Copy link
Owner

I think this is already in master. a978721

@zorbathut
Copy link
Contributor Author

zorbathut commented Oct 26, 2024

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.

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

Successfully merging this pull request may close these issues.

7 participants