GNOME-SESSION-INHI(1)

  .SH "NAME" gnome-session-inhibit - Inhibit gnome-session functionality
  .SH "SYNOPSIS"
    .HP u
      gnome-session-inhibit
       [OPTION...]
       [COMMAND]

  .SH "DESCRIPTION"

    .PP gnome-session-inhibit can inhibit certain gnome-session functionality while executing the given COMMAND. To achieve this, it calls the Inhibit() method of the gnome-session D-Bus API and creates an inhibitor. The inhibitor is automatically removed when gnome-session-inhibit exits.
    .PP A typical use case is to prevent the session from going idle (and thus locking the screen) while a movie player is running.

  .SH "OPTIONS"

      .PP -h, --help

            Print help and exit
          .RE
          .PP --version

                Print version information and exit
              .RE
              .PP --app-id ID

                    The application id to use when calling the gnome-session Inhibit() method. If this option is not specified, "unknown" is used.
                  .RE
                  .PP --reason REASON

                        A human-readable reason to pass along when calling the gnome-session Inhibit() method. If this option is not specified, "not specified" is used.
                      .RE
                      .PP --inhibit ACTION

                            ACTION specifies the actions to inhibit. This option can be repeated to inhibit multiple actions. The possible values for an ACTION are: logout, switch-user, suspend, idle, automount. If this option is not specified, "idle" is assumed.
                          .RE
                          .PP --inhibit-only

                                Do not launch COMMAND and wait forever instead
                              .RE
                              .PP -l, --list

                                    List the existing inhibitions and exit
                                  .RE

                              .SH "SEE ALSO"
                                .PP systemd-inhibit(1)