Gio.Application.prototype.set_inactivity_timeout

function set_inactivity_timeout(inactivity_timeout: Number(guint)): void {
    // Gjs wrapper for g_application_set_inactivity_timeout()
}
  

Sets the current inactivity timeout for the application.

This is the amount of time (in milliseconds) after the last call to Gio.Application.prototype.release before the application stops running.

This call has no side effects of its own. The value set here is only used for next time Gio.Application.prototype.release drops the use count to zero. Any timeouts currently in progress are not impacted.

Since 2.28

inactivity_timeout

the timeout, in milliseconds