The cabinet is appointed by the president after a general election to the Althing; however, the appointment is usually negotiated by the leaders of the political parties, who decide among themselves after discussions which parties can form the cabinet and how to distribute its seats, under the condition that it has a majority support in the Althing. Only when the party leaders are unable to reach a conclusion by themselves within a reasonable time span does the president exercise this power and appoint the cabinet personally. This has not happened since the republic was founded in 1944, but in 1942 regent Sveinn Björnsson, who had been installed in that position by the Althing in 1941, appointed a non-parliamentary government. The regent had, for all practical purposes, the position of a president, and Sveinn would later become the country's first president in 1944.