gnome-session-inhibit - inhibit gnome-session functionality
gnome-session-inhibit [OPTION...] [COMMAND]
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.
A typical use case is to prevent the session from going idle (and thus locking the screen) while a movie player is running.