LinusU / Audrey

An elementary video player
http://fav.me/d3iqiiw
MIT License
1 stars 0 forks source link

Inhibit screensaver #1

Open LinusU opened 12 years ago

LinusU commented 12 years ago

When playing video, inhibit screensaver.

sakjur commented 12 years ago

It could work with executing xset s off Then when audrey is killed/closed run: xset s on

sakjur commented 12 years ago

Ignore my previous comment, it just removes one of many possible screensavers.

LinusU commented 12 years ago

I think that we'll have to use different methods to support as many platforms as possible. For gnome we can use dbus:gnome.powermanager.

sakjur commented 12 years ago

Perhaps, but there should be somekind of an universal screensaver fuckoff-feature in every OS.

How did MPlayer do it? Couldn't you tell the computer that it is active as long as a video is PLAYING? How did MPlayer solve this issue?