[MPlayer-dev-eng] [PATCH] replace screensaver mess by general "heartbeat" command

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Dec 23 12:48:56 CET 2007


Hello,
On Sun, Dec 23, 2007 at 12:12:49PM +0100, Reimar Döffinger wrote:
[...]
> Patch obviously lacks man page part.

Here is that part, it looks a bit ugly though, so improvements wouldn't
hurt.

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: DOCS/man/en/mplayer.1
===================================================================
--- DOCS/man/en/mplayer.1	(revision 25513)
+++ DOCS/man/en/mplayer.1	(working copy)
@@ -834,6 +834,24 @@
 Leads to image distortion!
 .
 .TP
+.B \-heartbeat-cmd
+Command that is executed every 30 seconds during playback via system() -
+i.e. using the shell.
+.sp 1
+.I NOTE:
+MPlayer uses this command without any checking, it is your responsibility
+to ensure it does not cause security problems (e.g. make sure to use full
+paths if "." is in your path like on Windows).
+.sp 1
+This can be "misused" to disable screensavers that do not support the proper
+X API for this.
+.sp 1
+.I EXAMPLE for gnome screensaver:
+mplayer \-heartbeat-cmd "gnome-screensaver-command -p" file
+.RE
+.PD 1
+.
+.TP
 .B \-identify
 Shorthand for \-msglevel identify=4.
 Show file parameters in an easily parseable format.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071223/e8ed9594/attachment.pgp>


More information about the MPlayer-dev-eng mailing list