When a vacancy occurs during the recess of the legislature, in any office which the legislature, or the governor by and with the advice and consent of the senate, or of both branches of the legislature, is authorized to fill by appointment, unless otherwise specially provided, the governor may appoint some suitable person to perform the duties of such office for the time being. The person so appointed, before proceeding to execute the duties, shall qualify in the manner required by law of the officer in whose place the person is appointed and hold office until the vacancy is regularly filled, as provided by law.