From 5e41f9d7426bfc388a8785f4e3804ae468015073 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 7 Nov 2014 14:25:02 +0100 Subject: Add a commandline wrapper to inhibit idle Based on gnome-commit: fcdbf2b36b184f10239ac7a81cb3c88b4c5ed477 From: Matthias Clasen --- doc/man/Makefile.am | 20 ++++++++- doc/man/mate-session-inhibit.xml | 92 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+), 2 deletions(-) create mode 100644 doc/man/mate-session-inhibit.xml (limited to 'doc/man') diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 0e88e3d..1a5a919 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -1,10 +1,26 @@ +XSLTPROC_FLAGS = \ + --nonet \ + --stringparam man.output.quietly 1 \ + --stringparam funcsynopsis.style ansi \ + --stringparam man.th.extra1.suppress 1 \ + --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 + +.xml.1: + $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + man_MANS = \ mate-session.1 \ mate-session-properties.1 \ mate-session-save.1 \ - mate-wm.1 + mate-wm.1 \ + mate-session-inhibit.1 -EXTRA_DIST = \ +EXTRA_DIST = \ + mate-session-inhibit.xml \ $(man_MANS) +CLEANFILES = \ + mate-session-inhibit.1 + -include $(top_srcdir)/git.mk diff --git a/doc/man/mate-session-inhibit.xml b/doc/man/mate-session-inhibit.xml new file mode 100644 index 0000000..10ed92c --- /dev/null +++ b/doc/man/mate-session-inhibit.xml @@ -0,0 +1,92 @@ + + + +mate-session-inhibit +mate-session + + + +mate-session-inhibit +1 +User Commands + + + +mate-session-inhibit +inhibit mate-session functionality + + + + +mate-session-inhibit +OPTION +COMMAND + + + +Description +mate-session-inhibit can inhibit certain +mate-session functionality while executing the given COMMAND. To +achieve this, it calls the Inhibit() method of the mate-session +D-Bus API and creates an inhibitor. The inhibitor is automatically +removed when mate-session-inhibit exits. + + +A typical use case is to prevent the session from going idle (and +thus locking the screen) while a movie player is running. + + + + +Options + + + +, + +print help and exit + + + + + + +print version information and exit + + + + + ID + +The application id to use when calling the mate-session Inhibit() method. +If this option is not specified, "unknown" is used. + + + + + REASON + +A human-readable reason to pass along when calling the mate-session +Inhibit() method. If this option is not specified, "not specified" is used. + + + + + ARG + +ARG specifies the things to inhibit, as a colon-separated list. The +possible values are logout, switch-user, suspend, idle, automount. +If this option is used more than once, the values are combined. +If this option is not specified, "idle" is assumed. + + + + + + +See also + +systemd-inhibit1 + + + -- cgit v1.2.1