Application.setDefault

void setDefault()

Sets or unsets the default application for the process, as returned by [gio.application.Application.getDefault].

This function does not take its own reference on application. If application is destroyed then the default application will revert back to null.